Extensions for F#'s Array module.
Function or value | Description |
|
|
Full Usage:
Array.centeredWindow n source
Parameters:
int
source : 'a[]
Returns: 'a[][]
|
Returns an array of sliding windows of data drawn from the source array. Each window contains the n elements surrounding the current element.
|
Full Usage:
Array.centralMovingAverage n a
Parameters:
int
a : ^t[]
Returns: ^t[]
|
Calculates the central moving average for the array using n elements either side of the point where the mean is being calculated.
|
Full Usage:
Array.centralMovingAverageOfOption n a
Parameters:
int
a : ^t option array
Returns: ^t option[]
|
Calculates the central moving average for the array of optional elements using n elements either side of the point where the mean is being calculated. If any of the optional elements in the averaging window are None then the average itself is None.
|
|
Extracts from an array of Choice all the Choice1Of2 elements. All the Choice1Of2 elements are extracted in order.
|
|
Extracts from an array of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
|
Full Usage:
Array.copyTo sourceStartIndx startIndx source target
Parameters:
int
startIndx : int
source : 'a[]
target : 'a[]
|
|
Full Usage:
Array.equalsWith eq xs ys
Parameters:
'a -> 'a -> bool
xs : 'a[]
ys : 'a[]
Returns: bool
|
|
Full Usage:
Array.nth i arr
Parameters:
int
arr : 'a[]
Returns: 'a
|
|
Full Usage:
Array.ofTuple source
Parameters:
obj
Returns: obj array
|
|
|
Partitions an array of Choice into two arrays. All the Choice1Of2 elements are extracted, in order, to the first component of the output. Similarly the Choice2Of2 elements are extracted to the second component of the output.
|
Full Usage:
Array.setAt i v arr
Parameters:
int
v : 'a
arr : 'a[]
Returns: 'a[]
|
|
Full Usage:
Array.toTuple source
Parameters:
'T array
Returns: 't
|
|