Maths.Histogram

References
public readonly struct Maths.Histogram
A complete historgram for a data set.

Properties

BucketCount

#
Gets the number of buckets in this histogram.
public int BucketCount { get; }

BucketWidth

#
Gets the width of all buckets.
public double BucketWidth { get; }

Deviation

#
Gets the standard deviation of the value collection.
public double Deviation { get; }

Highest

#
Gets the count of the fullest bucket.
public int Highest { get; }

LowerLimit

#
Gets the lower limit of this histogram. This may differ from the Minimum if the histogram is forced to align with another one.
public double LowerLimit { get; }

Lowest

#
Gets the count of the emptiest bucket.
public int Lowest { get; }

Maximum

#
Gets the value of the largest (or most positive) number in this histogram.
public double Maximum { get; }

Mean

#
Gets the mean of the value collection.
public double Mean { get; }

Median

#
Gets the median of the value collection.
public double Median { get; }

Minimum

#
Gets the value of the smallest (or most negative) number in this histogram.
public double Minimum { get; }

Q2

#
Gets the transition between the first and second quartiles.
public double Q2 { get; }

Q3

#
Gets the transition between the second and third quartiles.
public double Q3 { get; }

UpperLimit

#
Gets the upper limit of this histogram. This may differ from the Maximum if the histogram is forced to align with another one.
public double UpperLimit { get; }

Indexers

this[]

#
Gets the bucket at the given index.
public Maths.HistogramBucket this[
index
] { get; }

Methods

BucketsAccordingToSturges

#
Compute the ideal number of buckets according to Herbert A. Sturges in his paper 'The Choice Of A Class Interval' in doi:10.1080/01621459.1926.10502161
public static int BucketsAccordingToSturges(
lower,
Lower bound of distribution.
upper,
Upper bound of distribution.
count
Number of samples in distribution
)
Ideal number of buckets on the distribution interval.

Create

#
Compute the histogram for a data set.
public static Maths.Histogram Create(
data,
Data set.
lower,
Lower bound of first bucket.
upper,
Upper bound of last bucket.
howManyBuckets
Number of buckets.
)

Create

#
Compute the histogram for a data set with automatic bounds. This method enumerates the data set twice.
public static Maths.Histogram Create(
data,
Data set.
howManyBuckets
Number of buckets.
)

Create

#
Compute the standard histogram for a data set.
public static Maths.Histogram Create(
data
Data set.
)

Create

#
Create the standard histogram for integer data.
public static Maths.Histogram Create()

CreateMultiple

#
Create multiple aligned histograms.
public static Maths.Histogram[] CreateMultiple(
data,
Multiple data sets.
lower,
Lower bound of first bucket.
upper,
Upper bound of last bucket.
howManyBuckets
Number of buckets.
)

CreateMultiple

#
Create multiple aligned histograms.
public static Maths.Histogram[] CreateMultiple(
data,
Multiple data sets.
howManyBuckets
Number of buckets.
)

CreateMultiple

#
Create multiple aligned histograms.
public static Maths.Histogram[] CreateMultiple(
data
Multiple data sets.
)

RoundBucketsToNiceNumber

#
Round a histogram bucket count to a 'nice' number.
public static int RoundBucketsToNiceNumber(
count
)