Click or drag to resize
SeriesExtensionsResampleUniformK1, V, K2 Method (SeriesK1, V, FuncK1, K2, FuncK2, K2, Lookup)
Resample the series based on equivalence class on the keys and also generate values for all keys of the target space that are between the minimal and maximal key of the specified series (e.g. generate value for all days in the range covered by the series). A specified function `keyProj` is used to project keys to another space and `nextKey` is used to generate all keys in the range. The last value of each chunk is returned. When there are no values for a (generated) key, then the function attempts to get the greatest value from the previous smaller chunk (i.e. value for the previous date time). ## Parameters - `series` - An input series to be resampled - `fillMode` - When set to `Lookup.NearestSmaller` or `Lookup.NearestGreater`, the function searches for a nearest available observation in an neighboring chunk. Otherwise, the function `f` is called with an empty series as an argument. - `keyProj` - A function that transforms keys from original space to a new space (which is then used for grouping based on equivalence) - `nextKey` - A function that gets the next key in the transformed space ## Remarks This operation is only supported on ordered series. The method throws `InvalidOperationException` when the series is not ordered. [category:Lookup, resampling and scaling]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K2, V> ResampleUniform<K1, V, K2>(
	this Series<K1, V> series,
	Func<K1, K2> keyProj,
	Func<K2, K2> nextKey,
	Lookup fillMode
)

Parameters

series
Type: DeedleSeriesK1, V

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

keyProj
Type: SystemFuncK1, K2

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

nextKey
Type: SystemFuncK2, K2

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

fillMode
Type: DeedleLookup

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

Type Parameters

K1
V
K2

Return Value

Type: SeriesK2, V

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SeriesK1, 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