Generates statistics for the sample via the given function. The function is applied to each element in the sample, and its result is then used to calculate a mean, standard deviation, and histogram.
i1 : s=sample(ER(6,3,0.2),15); |
i2 : statistics(s, degree@@ideal)
o2 = HashTable{Histogram => Tally{1 => 5 }}
2 => 4
4 => 1
5 => 3
8 => 1
12 => 1
52
Mean => --
15
StdDev => 3.05214
o2 : HashTable
|