Namespaces

Types

Type Statistics

Namespace MathNet.Numerics.Statistics

Extension methods to return basic statistics on set of data.

Methods

Public static methods

double Maximum(this IEnumerable<Nullable<double>> data)

Returns the maximum value in the sample data.
Parameters
return double The maximum value in the sample data.
IEnumerable<Nullable<double>> data The sample data.

double Mean(this IEnumerable<double> data)

Calculates the sample mean.
Parameters
return double The mean of the sample.
IEnumerable<double> data The data to calculate the mean of.

double Median(this IEnumerable<double> data)

Calculates the sample median.
Parameters
return double The median of the sample.
IEnumerable<double> data The data to calculate the median of.

double Minimum(this IEnumerable<Nullable<double>> data)

Returns the minimum value in the sample data.
Parameters
return double The minimum value in the sample data.
IEnumerable<Nullable<double>> data The sample data.

double OrderStatistic(IEnumerable<double> samples, int order)

Evaluate the i-order (1..N) statistic of the provided samples.
Parameters
return double The i'th order statistic in the sample data.
IEnumerable<double> samples The sample data.
int order Order of the statistic to evaluate.

double PopulationStandardDeviation(this IEnumerable<double> data)

Calculates the biased sample standard deviation (on a dataset of size N will use an N normalizer).
Parameters
return double The standard deviation of the sample.
IEnumerable<double> data The data to calculate the standard deviation of.

double PopulationVariance(this IEnumerable<double> data)

Calculates the biased population variance estimator (on a dataset of size N will use an N normalizer).
Parameters
return double The biased population variance of the sample.
IEnumerable<double> data The data to calculate the variance of.

double StandardDeviation(this IEnumerable<double> data)

Calculates the unbiased sample standard deviation (on a dataset of size N will use an N-1 normalizer).
Parameters
return double The standard deviation of the sample.
IEnumerable<double> data The data to calculate the standard deviation of.

double Variance(this IEnumerable<double> data)

Calculates the unbiased population variance estimator (on a dataset of size N will use an N-1 normalizer).
Parameters
return double The unbiased population variance of the sample.
IEnumerable<double> data The data to calculate the variance of.