Table of Contents

Class Statistics

Namespace
BenchmarkDotNet.Mathematics
Assembly
BenchmarkDotNet.dll
public class Statistics
Inheritance
Statistics
Extension Methods

Constructors

Statistics(Sample)

public Statistics(Sample sample)

Parameters

sample Sample

Statistics(IEnumerable<double>)

public Statistics(IEnumerable<double> values)

Parameters

values IEnumerable<double>

Statistics(IEnumerable<int>)

public Statistics(IEnumerable<int> values)

Parameters

values IEnumerable<int>

Statistics(params double[])

public Statistics(params double[] values)

Parameters

values double[]

Properties

AllOutliers

public double[] AllOutliers { get; }

Property Value

double[]

ConfidenceInterval

public LegacyConfidenceInterval ConfidenceInterval { get; }

Property Value

LegacyConfidenceInterval

InterquartileRange

public double InterquartileRange { get; }

Property Value

double

Kurtosis

public double Kurtosis { get; }

Property Value

double

LowerFence

public double LowerFence { get; }

Property Value

double

LowerOutliers

public double[] LowerOutliers { get; }

Property Value

double[]

Max

public double Max { get; }

Property Value

double

Mean

public double Mean { get; }

Property Value

double

Median

public double Median { get; }

Property Value

double

Min

public double Min { get; }

Property Value

double

N

public int N { get; }

Property Value

int

OriginalValues

public IReadOnlyList<double> OriginalValues { get; }

Property Value

IReadOnlyList<double>

Percentiles

public PercentileValues Percentiles { get; }

Property Value

PercentileValues

Q1

public double Q1 { get; }

Property Value

double

Q3

public double Q3 { get; }

Property Value

double

Skewness

public double Skewness { get; }

Property Value

double

StandardDeviation

public double StandardDeviation { get; }

Property Value

double

StandardError

public double StandardError { get; }

Property Value

double

UpperFence

public double UpperFence { get; }

Property Value

double

UpperOutliers

public double[] UpperOutliers { get; }

Property Value

double[]

Variance

public double Variance { get; }

Property Value

double

Methods

CalcCentralMoment(int)

public double CalcCentralMoment(int k)

Parameters

k int

Returns

double

CanBeInverted()

Returns true, if this statistics can be inverted (see Invert()).

public bool CanBeInverted()

Returns

bool

DivMean(Statistics?, Statistics?)

Mean for [X/Y].

public static double DivMean(Statistics? x, Statistics? y)

Parameters

x Statistics
y Statistics

Returns

double

Divide(Statistics, Statistics)

public static Statistics Divide(Statistics x, Statistics y)

Parameters

x Statistics
y Statistics

Returns

Statistics

GetActualOutliers(OutlierMode)

public double[] GetActualOutliers(OutlierMode outlierMode)

Parameters

outlierMode OutlierMode

Returns

double[]

GetConfidenceInterval(ConfidenceLevel)

public ConfidenceInterval GetConfidenceInterval(ConfidenceLevel level)

Parameters

level ConfidenceLevel

Returns

ConfidenceInterval

Invert()

Statistics for [1/X]. If Min is less then or equal to 0, returns null.

public Statistics Invert()

Returns

Statistics

IsActualOutlier(double, OutlierMode)

public bool IsActualOutlier(double value, OutlierMode outlierMode)

Parameters

value double
outlierMode OutlierMode

Returns

bool

IsLowerOutlier(double)

public bool IsLowerOutlier(double value)

Parameters

value double

Returns

bool

IsOutlier(double)

public bool IsOutlier(double value)

Parameters

value double

Returns

bool

IsUpperOutlier(double)

public bool IsUpperOutlier(double value)

Parameters

value double

Returns

bool

MulMean(Statistics, Statistics)

Mean for [X*Y].

public static double MulMean(Statistics x, Statistics y)

Parameters

x Statistics
y Statistics

Returns

double

ToString()

public override string ToString()

Returns

string

WithoutOutliers()

public double[] WithoutOutliers()

Returns

double[]