Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
GetStdDev is a math code snippet to calculate the standard deviation of the values in a container.
GetStdDev was tested by a previous version of this code snippet.
Screen output:
Starting /MyFolder/MyProject...
2: 0.207834 0.207834
4: 0.273555 0.273555
8: 0.2501 0.2501
16: 0.295567 0.295567
32: 0.301386 0.301386
64: 0.28569 0.28569
128: 0.290935 0.290935
256: 0.283272 0.283272
512: 0.283464 0.283464
1024: 0.289154 0.289154
2048: 0.288763 0.288763
4096: 0.288992 0.288992
8192: 0.288068 0.288068
16384: 0.288728 0.288728
32768: 0.288723 0.288723
65536: 0.28853 0.28853
131072: 0.288398 0.288398
262144: 0.288527 0.288527
524288: 0.288621 0.288621
1048576: 0.288542 0.288542
2097152: 0.288646 0.288646
4194304: 0.288659 0.288659
8388608: 0.288658 0.288658
16777216: 0.288649 0.288649
/MyFolder/MyProject exited with code 0
|
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
