Namespaces

Types in MathNet.Numerics.Statistics

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
IEnumerable<Nullable<double>> data

The sample data.

Return
double

The maximum value in the sample data.

double Mean(this IEnumerable<double> data)

Calculates the sample mean.
Parameters
IEnumerable<double> data

The data to calculate the mean of.

Return
double

The mean of the sample.

double Median(this IEnumerable<double> data)

Calculates the sample median.
Parameters
IEnumerable<double> data

The data to calculate the median of.

Return
double

The median of the sample.

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

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

The sample data.

Return
double

The minimum value in the sample data.

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

Evaluate the i-order (1..N) statistic of the provided samples.
Parameters
IEnumerable<double> samples

The sample data.

int order

Order of the statistic to evaluate.

Return
double

The i'th order statistic in the sample data.

double PopulationStandardDeviation(this IEnumerable<double> data)

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

The data to calculate the standard deviation of.

Return
double

The standard deviation of the sample.

double PopulationVariance(this IEnumerable<double> data)

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

The data to calculate the variance of.

Return
double

The biased population variance of the sample.

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
IEnumerable<double> data

The data to calculate the standard deviation of.

Return
double

The standard deviation of the sample.

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
IEnumerable<double> data

The data to calculate the variance of.

Return
double

The unbiased population variance of the sample.