[FFmpeg-devel] [PATCH] avutil/tests/lfg.c: added proper normality test

Michael Niedermayer michael at niedermayer.cc
Sat Feb 18 00:15:15 EET 2017


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 <thomastdt at googlemail.com>
> ---
>  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

--- 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
Test lfg failed. Look at tests/data/fate/lfg.err for details.
make: *** [fate-lfg] Error 1


8...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170217/a2ac0374/attachment.sig>


More information about the ffmpeg-devel mailing list