Click or drag to resize
SeriesK, VAggregateTNewKey, R Method (AggregationK, FuncDataSegmentSeriesK, V, TNewKey, FuncDataSegmentSeriesK, V, OptionalValueR)
Aggregates an ordered series using the method specified by `Aggregation<K>` and then applies the provided `valueSelector` on each window or chunk to produce the result which is returned as a new series. A key for each window or chunk is selected using the specified `keySelector`. ## Parameters - `aggregation` - Specifies the aggregation method using `Aggregation<K>`. This is a discriminated union listing various chunking and windowing conditions. - `keySelector` - A function that is called on each chunk to obtain a key. - `valueSelector` - A value selector function that is called to aggregate each chunk or window. [category:Windowing, chunking and grouping]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public Series<TNewKey, R> Aggregate<TNewKey, R>(
	Aggregation<K> aggregation,
	Func<DataSegment<Series<K, V>>, TNewKey> keySelector,
	Func<DataSegment<Series<K, V>>, OptionalValue<R>> valueSelector
)

Parameters

aggregation
Type: DeedleAggregationK

[Missing <param name="aggregation"/> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},``0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},Deedle.OptionalValue{``1}})"]

keySelector
Type: SystemFuncDataSegmentSeriesK, V, TNewKey

[Missing <param name="keySelector"/> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},``0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},Deedle.OptionalValue{``1}})"]

valueSelector
Type: SystemFuncDataSegmentSeriesK, V, OptionalValueR

[Missing <param name="valueSelector"/> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},``0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},Deedle.OptionalValue{``1}})"]

Type Parameters

TNewKey
R

Return Value

Type: SeriesTNewKey, R

[Missing <returns> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},``0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},Deedle.OptionalValue{``1}})"]

See Also