Distribution
This class implements a sample distribution; it is a useful tool when undertaking a
statistical analysis of value producing processes: it counts the number of times each
value is observed (method Distribution.observe(Number) ) and can be used conveniently for
obtaining the number of observations within a certain range, discretising the observed
sample, calculating mean, variance and other sample properties, printing and plotting
the distribution, and so on.
Where possible, the methods provided by the class type of the sample values are used
directly, for other computations the values are converted to double ; be careful
as this might have consequences if the type of the sampled variable cannot be exactly
converted to double . |