[Shootout-list] comments on the "statistics" test
Randy Melton
seadevil at gmail.com
Sun Apr 23 22:54:49 UTC 2006
I looked at the statistics test.
I'm not sure the "skew" (or the Kurtosis) is calculated correctly
according the the definitions of skew that I found on:
http://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm
But for the moment assuming the "C-gcc" is the golden standard (it
passes according to the web page) I found mistakes/differences in the
Tcl code:
line:
23 set skew [expr {$skew + pow($skew, 3)}]
probably should be:
23 set skew [expr {$skew + pow($deviation, 3)}]
I was looking at optimizations, but until I know the test passes I
don't want to attempt them.
thanks,
randy melton
More information about the Shootout-list
mailing list