Click or drag to resize
SeriesExtensionsResampleUniformK, V, a Method (SeriesK, V, FuncK, a, Funca, a)
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). For each equivalence class (e.g. date), select the latest value (with greatest key). A specified function `keyProj` is used to project keys to another space and `nextKey` is used to generate all keys in the range. 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 - `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<a, V> ResampleUniform<K, V, a>(
	this Series<K, V> series,
	Func<K, a> keyProj,
	Func<a, a> nextKey
)

Parameters

series
Type: DeedleSeriesK, V

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

keyProj
Type: SystemFuncK, a

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

nextKey
Type: SystemFunca, a

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

Type Parameters

K
V
a

Return Value

Type: Seriesa, V

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

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