List Module
Module to compute common statistical measure on list
Functions and values
| Function or value | Description |
Full Usage:
List.cov list1 list2
Parameters:
^T list
-
The first input list.
list2 : ^T list
-
The second input list.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^U, ^a |
|
Full Usage:
List.covBy f list
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input list into a tuple of paired observations.
list : 'T list
-
The input list.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline Type parameters: 'T, ^a, ^U, ^b |
Returns NaN if data is empty or if any entry is NaN.
Example
val xy: {| x: float; y: float |} list
anonymous record field x: float
anonymous record field y: float
Multiple items
module List from Microsoft.FSharp.Collections -------------------- type List<'T> = | op_Nil | op_ColonColon of Head: 'T * Tail: 'T list interface IReadOnlyList<'T> interface IReadOnlyCollection<'T> interface IEnumerable interface IEnumerable<'T> member GetReverseIndex: rank: int * offset: int -> int member GetSlice: startIndex: int option * endIndex: int option -> 'T list static member Cons: head: 'T * tail: 'T list -> 'T list member Head: 'T member IsEmpty: bool member Item: index: int -> 'T with get ... |
Full Usage:
List.covOfPairs list
Parameters:
(^T * ^T) list
-
The input list.
Returns: ^U
sample covariance estimator (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.
Example
val xy: (float * float) list
Multiple items
module List from Microsoft.FSharp.Collections -------------------- type List<'T> = | op_Nil | op_ColonColon of Head: 'T * Tail: 'T list interface IReadOnlyList<'T> interface IReadOnlyCollection<'T> interface IEnumerable interface IEnumerable<'T> member GetReverseIndex: rank: int * offset: int -> int member GetSlice: startIndex: int option * endIndex: int option -> 'T list static member Cons: head: 'T * tail: 'T list -> 'T list member Head: 'T member IsEmpty: bool member Item: index: int -> 'T with get ... |
Full Usage:
List.covPopulation list1 list2
Parameters:
^T list
-
The first input list.
list2 : ^T list
-
The second input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline Type parameters: ^T, ^U, ^a |
|
Full Usage:
List.covPopulationBy f list
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input list into a tuple of paired observations.
list : 'T list
-
The input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline Type parameters: 'T, ^a, ^U, ^b |
Returns NaN if data is empty or if any entry is NaN.
Example
val xy: {| x: float; y: float |} list
anonymous record field x: float
anonymous record field y: float
Multiple items
module List from Microsoft.FSharp.Collections -------------------- type List<'T> = | op_Nil | op_ColonColon of Head: 'T * Tail: 'T list interface IReadOnlyList<'T> interface IReadOnlyCollection<'T> interface IEnumerable interface IEnumerable<'T> member GetReverseIndex: rank: int * offset: int -> int member GetSlice: startIndex: int option * endIndex: int option -> 'T list static member Cons: head: 'T * tail: 'T list -> 'T list member Head: 'T member IsEmpty: bool member Item: index: int -> 'T with get ... |
Full Usage:
List.covPopulationOfPairs list
Parameters:
(^T * ^T) list
-
The input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline Type parameters: ^T, ^U, ^a |
Returns NaN if data is empty or if any entry is NaN.
Example
val xy: (float * float) list
Multiple items
module List from Microsoft.FSharp.Collections -------------------- type List<'T> = | op_Nil | op_ColonColon of Head: 'T * Tail: 'T list interface IReadOnlyList<'T> interface IReadOnlyCollection<'T> interface IEnumerable interface IEnumerable<'T> member GetReverseIndex: rank: int * offset: int -> int member GetSlice: startIndex: int option * endIndex: int option -> 'T list static member Cons: head: 'T * tail: 'T list -> 'T list member Head: 'T member IsEmpty: bool member Item: index: int -> 'T with get ... |
Full Usage:
List.mean items
Parameters:
^T list
-
Returns: 'a
Modifiers: inline Type parameters: ^T, 'a |
|
Full Usage:
List.median xs
Parameters:
^T list
-
Returns: ^T
Modifiers: inline Type parameters: ^T, ^a |
|
|
|
FSharp.Stats