Click or drag to resize
SeriesExtensionsSampleK, V Method (SeriesK, V, IEnumerableK)
Sample an (ordered) series by finding the value at the exact or closest prior key for some new sequence of keys. ## Parameters - `series` - An input series to be sampled - `keys` - The keys at which to sample ## 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<K, V> Sample<K, V>(
	this Series<K, V> series,
	IEnumerable<K> keys
)

Parameters

series
Type: DeedleSeriesK, V

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

keys
Type: System.Collections.GenericIEnumerableK

[Missing <param name="keys"/> documentation for "M:Deedle.SeriesExtensions.Sample``2(Deedle.Series{``0,``1},System.Collections.Generic.IEnumerable{``0})"]

Type Parameters

K
V

Return Value

Type: SeriesK, V

[Missing <returns> documentation for "M:Deedle.SeriesExtensions.Sample``2(Deedle.Series{``0,``1},System.Collections.Generic.IEnumerable{``0})"]

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