SummaryStats Module
Module to compute summary statistics for a collection of numeric values, including the count, mean, M2 (sum of squared deviations), minimum, and maximum.
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
createSummaryStats n mean sos min max
Parameters:
'a
-
The number of observed data points.
mean : 'a
-
The running mean of the data points.
sos : 'a
-
The sum of squared deviations fom the mean
min : 'a
-
The minimum observed value.
max : 'a
-
The maximum observed value.
Returns: SummaryStats<'a>
A new SummaryStats record.
|
|
Full Usage:
mean sStats
Parameters:
SummaryStats<'a>
-
A summary statistics record.
Returns: 'a
The mean of the observed data.
Modifiers: inline Type parameters: 'a |
|
Full Usage:
ofArray arr
Parameters:
^T[]
-
An array of numeric data.
Returns: SummaryStats<^T>
A SummaryStats record containing the final count, mean, sum of squares, min, and max.
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
This function iterates over the array exactly once. It is generic over any
numeric type
|
Full Usage:
ofSeq items
Parameters:
^T seq
-
A sequence of numeric data.
Returns: SummaryStats<^T>
A SummaryStats record containing the final count, mean, sum of squares, min, and max.
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
This function reads the sequence one item at a time (via its enumerator),
applying Welford's online update formula. It is generic over any numeric
type
|
Full Usage:
stDev sStats
Parameters:
SummaryStats<^T>
-
A summary statistics record.
Returns: 'c
The sample standard deviation of the observed data.
Modifiers: inline Type parameters: ^T, ^a, ^b, 'c |
This is the square root of the sample variance.
|
Full Usage:
stDevPopulation sStats
Parameters:
SummaryStats<^T>
-
A summary statistics record.
Returns: 'b
The population standard deviation of the observed data.
Modifiers: inline Type parameters: ^T, ^a, 'b |
This is the square root of the population variance.
|
Full Usage:
var sStats
Parameters:
SummaryStats<^T>
-
A summary statistics record.
Returns: 'b
The sample variance of the observed data.
Modifiers: inline Type parameters: ^T, ^a, 'b |
The sample variance is computed as
|
Full Usage:
varPopulation sStats
Parameters:
SummaryStats<^a>
-
A summary statistics record.
Returns: 'b
The population variance of the observed data.
Modifiers: inline Type parameters: ^a, 'b |
The population variance is defined as
|
FSharp.Stats