Array Module
Module to compute common statistical measure on array
Functions and values
| Function or value | Description |
Full Usage:
Array.cov array1 array2
Parameters:
^T array
-
The first input array.
array2 : ^T array
-
The second input array.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline Type parameters: ^T, ^U, ^a |
|
Full Usage:
Array.covBy f array
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input array into a tuple of paired observations.
array : 'T array
-
The input array.
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 |} array
anonymous record field x: float
anonymous record field y: float
module Array
from Microsoft.FSharp.Collections
|
Full Usage:
Array.covOfPairs array
Parameters:
(^T * ^T) array
-
The input array.
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) array
module Array
from Microsoft.FSharp.Collections
|
Full Usage:
Array.covPopulation array1 array2
Parameters:
^T array
-
The first input array.
array2 : ^T array
-
The second input array.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline Type parameters: ^T, ^U, ^a |
|
Full Usage:
Array.covPopulationBy f array
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input array into a tuple of paired observations.
array : 'T array
-
The input array.
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 |} array
anonymous record field x: float
anonymous record field y: float
module Array
from Microsoft.FSharp.Collections
|
Full Usage:
Array.covPopulationOfPairs array
Parameters:
(^T * ^T) array
-
The input array.
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) array
module Array
from Microsoft.FSharp.Collections
|
Full Usage:
Array.dropNaN array
Parameters:
float array
-
Returns: float array
|
|
Full Usage:
Array.median items
Parameters:
^T array
-
Returns: ^T
Modifiers: inline Type parameters: ^T, ^a |
|
Full Usage:
Array.medianAbsoluteDev data
Parameters:
float[]
-
Returns: float
|
|
Full Usage:
Array.partitionSortInPlace left right items
Parameters:
int
-
right : int
-
items : 'T array
-
Returns: int
Modifiers: inline Type parameters: 'T |
|
Full Usage:
Array.quickSelect k items
Parameters:
int
-
items : 'T array
-
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
Array.quickSelectInPlace k items
Parameters:
int
-
items : 'T array
-
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
Array.quickSelectInPlaceWith left right k arr
Parameters:
int
-
right : int
-
k : int
-
arr : 'T array
-
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
|
|
Full Usage:
Array.sampleWithOutReplacement rnd source k
Parameters:
Random
-
source : 'a array
-
k : int
-
Returns: 'a array
|
Implementation according to: http://krkadev.blogspot.de/2010/08/random-numbers-without-repetition.html
Example
|
Full Usage:
Array.sampleWithReplacement rnd source k
Parameters:
Random
-
source : 'a array
-
k : int
-
Returns: 'a array
|
When we sample with replacement, the two sample values are independent.Practically, this means that what we get on the first one doesn't affect what we get on the second.Mathematically, this means that the covariance between the two is zero
Example
|
Full Usage:
Array.seqInit from tto length
Parameters:
float
-
tto : float
-
length : int
-
Returns: float array
|
|
Full Usage:
Array.shuffleFisherYates arr
Parameters:
'a[]
-
Returns: 'a array
|
|
Full Usage:
Array.shuffleFisherYatesInPlace arr
Parameters:
'a[]
-
Returns: 'a[]
|
|
Full Usage:
Array.sort2InPlaceByKeys from count keys items
Parameters:
int
count : int
keys : 'T array
items : 'T array
|
|
Full Usage:
Array.swapInPlace left right items
Parameters:
int
right : int
items : 'T array
Modifiers: inline Type parameters: 'T |
|
Full Usage:
Array.varOf mean items
Parameters:
^a
-
items : ^T[]
-
Returns: ^T
Modifiers: inline Type parameters: ^a, ^T, ^b, ^c, ^d |
|
Full Usage:
Array.weightedMean weights items
Parameters:
^T array
-
items : ^T array
-
Returns: 'b
Modifiers: inline Type parameters: ^T, ^a, 'b |
|
Full Usage:
Array.weightedVariance mean weights items
Parameters:
^a
-
weights : ^T array
-
items : ^T array
-
Returns: 'f
Modifiers: inline Type parameters: ^a, ^T, ^b, ^c, ^d, ^e, 'f |
FSharp.Stats