Class MathHelper
Common mathematical functions used by the SigStat framework
Inheritance
System.Object
MathHelper
Namespace: SigStat.Common
Assembly: SigStat.Common.dll
Syntax
public static class MathHelper : object
Methods
| Improve this Doc View SourceMedian(IEnumerable<Double>)
Calculates the median of the given data series
Declaration
public static double Median(this IEnumerable<double> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Double> | values | The data series |
Returns
Type | Description |
---|---|
System.Double |
Min(Double, Double, Double)
Returns the smallest of the three double parameters
Declaration
public static double Min(double d1, double d2, double d3)
Parameters
Type | Name | Description |
---|---|---|
System.Double | d1 | |
System.Double | d2 | |
System.Double | d3 |
Returns
Type | Description |
---|---|
System.Double |
StdDiviation(IEnumerable<Double>)
return standard diviation of a feature values
Declaration
public static double StdDiviation(this IEnumerable<double> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Double> | values |
Returns
Type | Description |
---|---|
System.Double |