Table of Contents

Class Descriptive

Namespace
ScottPlot.Statistics
Assembly
ScottPlot.dll
public static class Descriptive
Inheritance
Descriptive
Inherited Members

Methods

ArrayToVector(double[,], uint?, uint?)

Extracts a row or column from a 2D array

public static double[] ArrayToVector(double[,] values, uint? row = 0, uint? column = null)

Parameters

values double[,]
row uint?
column uint?

Returns

double[]

ArrayTranspose(double[,])

Transpose a multidimensional (not jagged) array

public static double[,] ArrayTranspose(double[,] matrix)

Parameters

matrix double[,]

Returns

double[,]

Mean(double[])

Return the sample mean.

public static double Mean(double[] values)

Parameters

values double[]

Returns

double

Mean<T>(IEnumerable<T>)

Return the sample mean.

public static double Mean<T>(IEnumerable<T> values)

Parameters

values IEnumerable<T>

Returns

double

Type Parameters

T

Median(double[])

Return the sample median.

public static double Median(double[] values)

Parameters

values double[]

Returns

double

NanMean(double[,], uint, uint?)

public static double NanMean(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

NanMean<T>(IReadOnlyList<T>)

Return the sample mean. NaN values are ignored. Returns NaN if all values are NaN.

public static double NanMean<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanStandardDeviationP<T>(IReadOnlyList<T>)

Return the population standard deviation (the square root of the sample variance). NaN values are ignored.

public static double NanStandardDeviationP<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanStandardDeviationP<T>(double[,], uint, uint?)

public static double NanStandardDeviationP<T>(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

Type Parameters

T

NanStandardDeviation<T>(IReadOnlyList<T>)

Return the sample standard deviation (the square root of the sample variance). NaN values are ignored.

public static double NanStandardDeviation<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanStandardDeviation<T>(double[,], uint, uint?)

public static double NanStandardDeviation<T>(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

Type Parameters

T

NanStandardError<T>(IReadOnlyList<T>)

Standard error of the mean. NaN values are ignored.

public static double NanStandardError<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanStandardError<T>(double[,], uint, uint?)

public static double NanStandardError<T>(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

Type Parameters

T

NanVarianceP<T>(IReadOnlyList<T>)

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. NaN values are ignored. Use this function when your data is a sample from a population. To calculate the variance from the entire population use VarianceP(double[]).

public static double NanVarianceP<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanVarianceP<T>(double[,], uint, uint?)

public static double NanVarianceP<T>(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

Type Parameters

T

NanVariance<T>(IReadOnlyList<T>)

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. NaN values are ignored. Use this function when your data is a sample from a population. To calculate the variance from the entire population use VarianceP(double[]).

public static double NanVariance<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

NanVariance<T>(double[,], uint, uint?)

public static double NanVariance<T>(double[,] values, uint row = 0, uint? column = null)

Parameters

values double[,]
row uint
column uint?

Returns

double

Type Parameters

T

Percentile(IReadOnlyList<double>, double)

Return the percentile of a sample.

public static double Percentile(IReadOnlyList<double> values, double percentile)

Parameters

values IReadOnlyList<double>
percentile double

Returns

double

RemoveNaN(double[])

public static double[] RemoveNaN(double[] values)

Parameters

values double[]

Returns

double[]

RemoveNaN<T>(IReadOnlyList<T>)

public static IReadOnlyList<double> RemoveNaN<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

IReadOnlyList<double>

Type Parameters

T

SortedMedian(IReadOnlyList<double>)

Return the median of a sorted sample.

public static double SortedMedian(IReadOnlyList<double> sortedValues)

Parameters

sortedValues IReadOnlyList<double>

Returns

double

SortedPercentile(IReadOnlyList<double>, double)

Return the percentile of a sorted sample.

public static double SortedPercentile(IReadOnlyList<double> sortedValues, double percentile)

Parameters

sortedValues IReadOnlyList<double>
percentile double

Returns

double

StandardDeviation(double[])

Return the sample standard deviation (the square root of the sample variance).

public static double StandardDeviation(double[] values)

Parameters

values double[]

Returns

double

StandardDeviationP(double[])

Return the population standard deviation (the square root of the population variance). See VarianceP() for more information.

public static double StandardDeviationP(double[] values)

Parameters

values double[]

Returns

double

StandardDeviationP<T>(IEnumerable<T>)

Return the population standard deviation (the square root of the population variance). See VarianceP() for more information.

public static double StandardDeviationP<T>(IEnumerable<T> values)

Parameters

values IEnumerable<T>

Returns

double

Type Parameters

T

StandardDeviation<T>(IEnumerable<T>)

Return the sample standard deviation (the square root of the sample variance).

public static double StandardDeviation<T>(IEnumerable<T> values)

Parameters

values IEnumerable<T>

Returns

double

Type Parameters

T

StandardError<T>(IReadOnlyList<T>)

Standard error of the mean.

public static double StandardError<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

Sum(double[])

Return the sample sum.

public static double Sum(double[] values)

Parameters

values double[]

Returns

double

Sum<T>(IReadOnlyList<T>)

Return the sample sum.

public static double Sum<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

Variance(double[])

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. Use this function when your data is a sample from a population. To calculate the variance from the entire population use VarianceP(double[]).

public static double Variance(double[] values)

Parameters

values double[]

Returns

double

VarianceP(double[])

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. Use this function to calculate the variance from the entire population. To estimate the variance from a sample, use Variance(double[]).

public static double VarianceP(double[] values)

Parameters

values double[]

Returns

double

VarianceP<T>(IReadOnlyList<T>)

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. Use this function to calculate the variance from the entire population. To estimate the variance from a sample, use Variance<T>(IReadOnlyList<T>).

public static double VarianceP<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

Variance<T>(IReadOnlyList<T>)

Return the sample variance (second moment about the mean) of data. Input must contain at least two values. Use this function to calculate the variance from the entire population. To estimate the variance from a sample, use VarianceP<T>(IReadOnlyList<T>)().

public static double Variance<T>(IReadOnlyList<T> values)

Parameters

values IReadOnlyList<T>

Returns

double

Type Parameters

T

VerticalMean(double[,])

public static double[] VerticalMean(double[,] values)

Parameters

values double[,]

Returns

double[]

VerticalNanMean(double[,])

public static double[] VerticalNanMean(double[,] values)

Parameters

values double[,]

Returns

double[]

VerticalNanStandardDeviation(double[,])

public static double[] VerticalNanStandardDeviation(double[,] values)

Parameters

values double[,]

Returns

double[]

VerticalNanStandardError(double[,])

public static double[] VerticalNanStandardError(double[,] values)

Parameters

values double[,]

Returns

double[]

VerticalSlice(double[,], int)

public static double[] VerticalSlice(double[,] values, int columnIndex)

Parameters

values double[,]
columnIndex int

Returns

double[]

VerticalStandardDeviation(double[,])

public static double[] VerticalStandardDeviation(double[,] values)

Parameters

values double[,]

Returns

double[]

VerticalStandardError(double[,])

public static double[] VerticalStandardError(double[,] values)

Parameters

values double[,]

Returns

double[]