A single-file C# discrete distribution class. This class allows you to aggregate samples into integer buckets and perform analysis on the set of samples.
Constructs a distribution from a set of samples.
Constructs an empty distribution with preallocated space.
The class also supports collection initialization.
The value of the smallest sample in the distribution.
The value of the largest sample in the distribution.
Gets or sets the number of samples in the specified bucket.
Adds all the samples in the other
distribution to this one.
Adds a sample to the distribution.
Adds a quantity of the same sample to the distribution.
Removes a sample from the distribution.
Calculates the mean of the distribution.
Calculates the standard deviation of the distribution.
Returns the total number of samples in the distribution.
Produces an ASCII bar graph of the distribution.
maxWidth
: The maximum width of the bars. 0 uses the raw value.keyFormat
: Format specifier to use to format the key values.