Class StatsFunctions provides statistical functions for NMath types,
including descriptive statistics and special functions.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public class StatsFunctions : NMathFunctions |
| Visual Basic (Declaration) |
|---|
Public Class StatsFunctions _ Inherits NMathFunctions |
| Visual C++ |
|---|
public ref class StatsFunctions : public NMathFunctions |
Remarks
Class StatsFunctions provides a wide variety of static functions for computing
descriptive statistics, such as mean, variance, standard deviation, percentile, median,
quartiles, geometric mean, harmonic mean, RMS, kurtosis, skewness, and many more.
Method overloads accept data as an array of doubles, an array of integers, a DoubleVector, or as a numeric column in a DataFrame.
Most functions in class StatsFunctions are accompanied by a paired function which ignores values that are Not-a-Number (NaN). For example, there are Mean() and NaNMean() functions, Variance() and NaNVariance() functions, and so forth. Unless a function is explicitly designed to handle missing values, it may return NaN or have unexpected results if values are missing. The provided convenience method NaNCheck() returns true if a given data set contains any missing values.
Class StatsFunctions also provides some special functions, including combinatorial functions, the gamma function, and the beta function.
Method overloads accept data as an array of doubles, an array of integers, a DoubleVector, or as a numeric column in a DataFrame.
Most functions in class StatsFunctions are accompanied by a paired function which ignores values that are Not-a-Number (NaN). For example, there are Mean() and NaNMean() functions, Variance() and NaNVariance() functions, and so forth. Unless a function is explicitly designed to handle missing values, it may return NaN or have unexpected results if values are missing. The provided convenience method NaNCheck() returns true if a given data set contains any missing values.
Class StatsFunctions also provides some special functions, including combinatorial functions, the gamma function, and the beta function.
Inheritance Hierarchy
System..::.Object
CenterSpace.NMath.Core..::.NMathFunctions
CenterSpace.NMath.Stats..::.StatsFunctions
CenterSpace.NMath.Core..::.NMathFunctions
CenterSpace.NMath.Stats..::.StatsFunctions