From patchwork Fri Feb 17 22:15:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 2598 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp384978vsb; Fri, 17 Feb 2017 14:15:45 -0800 (PST) X-Received: by 10.28.211.200 with SMTP id k191mr3316270wmg.137.1487369745589; Fri, 17 Feb 2017 14:15:45 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m144si3161267wma.137.2017.02.17.14.15.44; Fri, 17 Feb 2017 14:15:45 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8AD196899F1; Sat, 18 Feb 2017 00:15:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C773C680D23 for ; Sat, 18 Feb 2017 00:15:29 +0200 (EET) Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id CDFA717209A for ; Fri, 17 Feb 2017 23:15:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter16-d.gandi.net (mfilter16-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id OxbSh1_BRTwD for ; Fri, 17 Feb 2017 23:15:34 +0100 (CET) X-Originating-IP: 213.47.41.20 Received: from localhost (213-47-41-20.cable.dynamic.surfer.at [213.47.41.20]) (Authenticated sender: michael@niedermayer.cc) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 1991B17209F for ; Fri, 17 Feb 2017 23:15:33 +0100 (CET) Date: Fri, 17 Feb 2017 23:15:15 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20170217221515.GP5776@nb4> References: <1487305778-9978-1-git-send-email-thomastdt@googlemail.com> MIME-Version: 1.0 In-Reply-To: <1487305778-9978-1-git-send-email-thomastdt@googlemail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [FFmpeg-devel] [PATCH] avutil/tests/lfg.c: added proper normality test X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" On Thu, Feb 16, 2017 at 08:29:38PM -0800, Thomas Turner wrote: > The Chen-Shapiro(CS) test was used to test normality for > Lagged Fibonacci PRNG. > > Normality Hypothesis Test: > > The null hypothesis formally tests if the population > the sample represents is normally-distributed. For > CS, when the normality hypothesis is True, the > distribution of QH will have a mean close to 1. > > Information on CS can be found here: > > http://www.stata-journal.com/sjpdf.html?articlenum=st0264 > http://www.originlab.com/doc/Origin-Help/NormalityTest-Algorithm > > Signed-off-by: Thomas Turner > --- > libavutil/tests/lfg.c | 170 ++++++-- > tests/fate/libavutil.mak | 4 + > tests/ref/fate/lfg | 1007 ++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 1157 insertions(+), 24 deletions(-) > create mode 100644 tests/ref/fate/lfg works on x86_64 linux but fails on x86_32 Test lfg failed. Look at tests/data/fate/lfg.err for details. make: *** [fate-lfg] Error 1 8...] --- ffmpeg/tests/ref/fate/lfg 2017-02-17 22:27:05.394644315 +0100 +++ tests/data/fate/lfg 2017-02-17 22:53:34.978677803 +0100 @@ -1004,4 +1004,4 @@ true stddev : 53.000000 z-score : 0.181279 p-value : 0.428600 -QH[normality]: 1.015347 +QH[normality]: -274309382319023864748424681468621758678576399865310792059887853269490762262076171214661036349063168.000000