Click or drag to resize
SeriesExtensionsResampleEquivalenceK, V, a, b Method (SeriesK, V, FuncK, a, FuncSeriesK, V, b)
Resample the series based on equivalence class on the keys. A specified function `keyProj` is used to project keys to another space and the observations for which the projected keys are equivalent are grouped into chunks. The chunks are then transformed to values using the provided function `f`. ## Parameters - `series` - An input series to be resampled - `keyProj` - A function that transforms keys from original space to a new space (which is then used for grouping based on equivalence) - `aggregate` - A function that is used to collapse a generated chunk into a single value. ## Remarks This operation is only supported on ordered series. The method throws `InvalidOperationException` when the series is not ordered. For unordered series, similar functionality can be implemented using `GroupBy`. [category:Lookup, resampling and scaling]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<a, b> ResampleEquivalence<K, V, a, b>(
	this Series<K, V> series,
	Func<K, a> keyProj,
	Func<Series<K, V>, b> aggregate
)

Parameters

series
Type: DeedleSeriesK, V

[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.ResampleEquivalence``4(Deedle.Series{``0,``1},System.Func{``0,``2},System.Func{Deedle.Series{``0,``1},``3})"]

keyProj
Type: SystemFuncK, a

[Missing <param name="keyProj"/> documentation for "M:Deedle.SeriesExtensions.ResampleEquivalence``4(Deedle.Series{``0,``1},System.Func{``0,``2},System.Func{Deedle.Series{``0,``1},``3})"]

aggregate
Type: SystemFuncSeriesK, V, b

[Missing <param name="aggregate"/> documentation for "M:Deedle.SeriesExtensions.ResampleEquivalence``4(Deedle.Series{``0,``1},System.Func{``0,``2},System.Func{Deedle.Series{``0,``1},``3})"]

Type Parameters

K
V
a
b

Return Value

Type: Seriesa, b

[Missing <returns> documentation for "M:Deedle.SeriesExtensions.ResampleEquivalence``4(Deedle.Series{``0,``1},System.Func{``0,``2},System.Func{Deedle.Series{``0,``1},``3})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SeriesK, V. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also