Module to compute common statistical measure
Modules | Description |
Function or value | Description |
Full Usage:
cov seq1 seq2
Parameters:
seq<^T>
-
The first input sequence.
seq2 : seq<^T>
-
The second input sequence.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^b, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
covBy f seq
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input sequence into a tuple of paired observations.
seq : seq<'T>
-
The input sequence.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline |
Computes the sample covariance of two random variables generated by applying a function to the input sequence. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covOfPairs seq
Parameters:
seq<^T * ^T>
-
The input sequence.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline |
Computes the sample covariance of two random variables. The covariance will be calculated between the paired observations. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covPopulation seq1 seq2
Parameters:
seq<^T>
-
The first input sequence.
seq2 : seq<^T>
-
The second input sequence.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline Type parameters: ^T, ^b, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
covPopulationBy f seq
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input sequence into a tuple of paired observations.
seq : seq<'T>
-
The input sequence.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline |
Computes the population covariance of two random variables generated by applying a function to the input sequence. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covPopulationOfPairs seq
Parameters:
seq<^T * ^T>
-
The input sequence.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline |
Computes the population covariance of two random variables. The covariance will be calculated between the paired observations. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
cv items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
Coefficient of Variation of a sample (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^U, ^b, ^c |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
cvBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
Coefficient of Variation of a sample (Bessel's correction by N-1)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
cvPopulation items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
Coefficient of Variation of the population
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
cvPopulationBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
Coefficient of Variation of the population
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
getCvOfReplicates rep data
Parameters:
int
-
data : seq<^a>
-
Returns: seq<^a0>
Modifiers: inline Type parameters: ^a, ^a, ^b, ^c |
calculates the coefficient of variation based on the sample standard deviations with a given number of replicates present in the sequence
Example
|
Full Usage:
getMeanOfReplicates rep data
Parameters:
int
-
data : seq<^a>
-
Returns: seq<^a0>
Modifiers: inline Type parameters: ^a, ^a |
Example
|
Full Usage:
getStDevOfReplicates rep data
Parameters:
int
-
data : seq<^a>
-
Returns: seq<^c>
Modifiers: inline Type parameters: ^a, ^a, ^b, ^c |
Example
|
Full Usage:
mean items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
population mean (Normalized by N)
Modifiers: inline Type parameters: ^T, ^U |
Returns default value if data is empty or if any entry is NaN.
|
Full Usage:
meanBy f items
Parameters:
'T -> ^U
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
population mean (Normalized by N)
Modifiers: inline Type parameters: 'T, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanGeometric items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
gemetric mean
Modifiers: inline Type parameters: ^T, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanGeometricBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
gemetric mean
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanHarmonic items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
harmonic mean
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanHarmonicBy f items
Parameters:
'T -> ^U
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
harmonic mean
Modifiers: inline Type parameters: 'T, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanQuadratic items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
quadratic mean
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanQuadraticBy f items
Parameters:
^a -> ^b
-
A function applied to transform each element of the sequence.
items : seq<^T>
-
The input sequence.
Returns: ^U
quadratic mean
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanTruncated percent data
Parameters:
float
data : seq<^T>
Returns: ^U
truncated (trimmed) mean
Modifiers: inline Type parameters: ^T, ^U |
Computes the truncated (trimmed) mean where x percent of the highest, and x percent of the lowest values are discarded (total 2x) Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
meanTruncatedBy f percent data
Parameters:
'T -> ^U
-
A function applied to transform each element of the sequence.
percent : float
data : seq<'T>
Returns: ^U
truncated (trimmed) mean
Modifiers: inline Type parameters: 'T, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
median items
Parameters:
seq<^T>
-
Returns: ^T
Modifiers: inline Type parameters: ^T, ^a |
Example
|
Full Usage:
medianAbsoluteDev data
Parameters:
seq<float>
-
Returns: float
|
Example
|
Full Usage:
range items
Parameters:
seq<'a>
Returns: Interval<'a>
Modifiers: inline Type parameters: 'a |
|
Full Usage:
rangeBy f items
Parameters:
'a -> 'b
items : seq<'a>
Returns: Interval<'a>
Modifiers: inline |
|
Full Usage:
sem items
Parameters:
seq<^T>
-
Returns: float
Modifiers: inline |
Example
|
Full Usage:
stDev items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
standard deviation of a sample (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^a, ^b, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
stDevBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
standard deviation of a sample (Bessel's correction by N-1)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
stDevPopulation items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
population standard deviation (denominator = N)
Modifiers: inline Type parameters: ^T, ^a, ^b, ^U |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
stDevPopulationBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
population standard deviation (denominator = N)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
stats items
Parameters:
seq<^T>
-
Returns: SummaryStats<^T>
Modifiers: inline Type parameters: ^T, ^a, ^b |
Example
|
Full Usage:
var items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
variance of a sample (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^U, ^a |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
varBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
variance of a sample (Bessel's correction by N-1)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
varPopulation items
Parameters:
seq<^T>
-
The input sequence.
Returns: ^U
population variance estimator (denominator N)
Modifiers: inline Type parameters: ^T, ^U, ^a |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
varPopulationBy f items
Parameters:
'T -> ^a
-
A function applied to transform each element of the sequence.
items : seq<'T>
-
The input sequence.
Returns: ^U
population variance estimator (denominator N)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
weightedMean weights items
Parameters:
seq<^T>
items : seq<^T>
Returns: ^c -> ^b
Modifiers: inline |
|