avgtime - Small D util for your everyday benchmarking needs

Manfred Nowak svv1999 at hotmail.com
Thu Mar 22 22:51:40 PDT 2012


Andrei Alexandrescu wrote:

> You may want to also print the mode of the distribution,
> nontrivial but informative

In case of this implementation and according to the given link: trivial 
and noninformative, because

| For samples, if it is known that they are drawn from a symmetric
| distribution, the sample mean can be used as an estimate of the
| population mode.

and the program computes the variance as if the values of the sample 
follow a normal distribution, which is symmetric.

Therefore the mode of the sample is of interest only, when the variance 
is calculated wrongly.

-manfred  


More information about the Digitalmars-d-announce mailing list