Click or drag to resize
SeriesModuleChunkDistanceIntoD, K, T, R Method
Aggregates the input into a series of adacent chunks. A chunk is started once the distance between the first and the last key of a previous chunk is greater than the specified `distance`. Each chunk is then aggregated into a value using the specified function `f`. The key of each chunk is the key of the first element in the chunk. ## Parameters - `distance` - The maximal allowed distance between keys of a chunk. Note that this is an inline function - there must be `-` operator defined between `distance` and the keys of the series. - `f` - A value selector that is called to aggregate each chunk. - `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, R> ChunkDistanceInto<D, K, T, R>(
	D distance,
	FSharpFunc<Series<K, T>, R> f,
	Series<K, T> series
)

Parameters

distance
Type: D

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

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

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

Type Parameters

D
K
T
R

Return Value

Type: SeriesK, R

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

See Also