Yaaf.FSharp.Helper


Array

Defined in Yaaf.FSharp.Helper.dll.

Extensions for F#'s Array module.

Functions and values

Function or valueDescription
centeredWindow n source
Signature: n:int -> source:'?24051 [] -> '?24051 [] []
Type parameters: '?24051

Returns an array of sliding windows of data drawn from the source array. Each window contains the n elements surrounding the current element.

centralMovingAverage n a
Signature: n:int -> a:^t [] -> ^t []
Type parameters: ^t

Calculates the central moving average for the array using n elements either side of the point where the mean is being calculated.

centralMovingAverageOfOption n a
Signature: n:int -> a:^t option array -> ^t option []
Type parameters: ^t

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.

copyTo (...)
Signature: sourceStartIndx:int -> startIndx:int -> source:'?24045 [] -> target:'?24045 [] -> unit
Type parameters: '?24045
nth i arr
Signature: i:int -> arr:'?24041 [] -> '?24041
Type parameters: '?24041
ofTuple source
Signature: source:obj -> obj array
setAt i v arr
Signature: i:int -> v:'?24043 -> arr:'?24043 [] -> '?24043 []
Type parameters: '?24043
toTuple source
Signature: source:'T array -> 't
Type parameters: 'T, 't
Fork me on GitHub