Namespaces

Types in MathNet.Numerics.Statistics

Type DescriptiveStatistics

Namespace MathNet.Numerics.Statistics

Computes the basic statistics of data set. The class meets the NIST standard of accuracy for mean, variance, and standard deviation (the only statistics they provide exact values for) and exceeds them in increased accuracy mode. Recommendation: consider to use RunningStatistics instead.
This type declares a DataContract for out of the box ephemeral serialization with engines like DataContractSerializer, Protocol Buffers and FsPickler, but does not guarantee any compatibility between versions. It is not recommended to rely on this mechanism for durable persistance.

Constructors

Methods

Properties

Public Constructors

DescriptiveStatistics(IEnumerable<double> data, bool increasedAccuracy)

Initializes a new instance of the DescriptiveStatistics class.
Don't use increased accuracy for data sets containing large values (in absolute value). This may cause the calculations to overflow.
Parameters
IEnumerable<double> data

The sample data.

bool increasedAccuracy

If set to true , increased accuracy mode used. Increased accuracy mode uses Decimal types for internal calculations.

Public Methods

bool Equals(object obj)

int GetHashCode()

Type GetType()

string ToString()

Public Properties

long Count get; set;

Gets the size of the sample.
Value:

double Kurtosis get; set;

Gets the sample kurtosis.
Returns zero if Count is less than four.
Value:

double Maximum get; set;

Gets the maximum sample value.
Value:

double Mean get; set;

Gets the sample mean.
Value:

double Minimum get; set;

Gets the minimum sample value.
Value:

double Skewness get; set;

Gets the sample skewness.
Returns zero if Count is less than three.
Value:

double StandardDeviation get; set;

Gets the unbiased population standard deviation (on a dataset of size N will use an N-1 normalizer).
Value:

double Variance get; set;

Gets the unbiased population variance estimator (on a dataset of size N will use an N-1 normalizer).
Value: