MESSAGE
DATE | 2011-05-19 |
FROM | Ruben Safir
|
SUBJECT | Re: [NYLXS - HANGOUT] C++ Workshop - creating a distribution list
|
OK
We have a working example now of the standard deviation algorithm. The working code is now located at
http://www.nylxs.com/docs/workshops/stats.h.cpp.html
for the stat's library
http://www.nylxs.com/docs/workshops/linklist.h.html the linklist library
http://www.nylxs.com/docs/workshops/test_del.cpp.html
the test program
the relavent output is as follows
10505021 Found first value ==> '99' at node =='0x836b020 10505022 Found next value ==> '99' at node =='0x836b040 10505023 HELLO WORLD 10505024 The mean population occurance for any number is ==> 1000 10505025 The stanard deviation is ==> 33.8308
next is to create or alter the stddev method so that it looks at a single datapoint, saw the number 7 from a 1000 random selections between 0-99
do that 1000 times and see what it's specifc bellcurve looks like and its standard deviation. With perfect randomness, you would expect and mean of 1/100 * 1000 = 10.
|
|