Click or drag to resize
SeriesModuleWindowDistanceIntoa, K, T, b Method
Creates a sliding window based on distance between keys. A window is started at each input element and ends once the distance between the first and the last key is greater than the specified `distance`. Each window is then aggregated into a value using the specified function `f`. The key of each window is the key of the first element in the window. ## Parameters - `distance` - The maximal allowed distance between keys of a window. Note that this is an inline function - there must be `-` operator defined between `distance` and the keys of the series. - `f` - A function that is used to aggregate each window into a single value. - `series` - The input series to be aggregated. [category:Grouping, windowing and chunking]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, b> WindowDistanceInto<a, K, T, b>(
	a distance,
	FSharpFunc<Series<K, T>, b> f,
	Series<K, T> series
)

Parameters

distance
Type: a

[Missing <param name="distance"/> documentation for "M:Deedle.SeriesModule.WindowDistanceInto``4(``0,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``1,``2},``3},Deedle.Series{``1,``2})"]

f
Type: Microsoft.FSharp.CoreFSharpFuncSeriesK, T, b

[Missing <param name="f"/> documentation for "M:Deedle.SeriesModule.WindowDistanceInto``4(``0,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``1,``2},``3},Deedle.Series{``1,``2})"]

series
Type: DeedleSeriesK, T

[Missing <param name="series"/> documentation for "M:Deedle.SeriesModule.WindowDistanceInto``4(``0,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``1,``2},``3},Deedle.Series{``1,``2})"]

Type Parameters

a
K
T
b

Return Value

Type: SeriesK, b

[Missing <returns> documentation for "M:Deedle.SeriesModule.WindowDistanceInto``4(``0,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``1,``2},``3},Deedle.Series{``1,``2})"]

See Also