| SeriesExtensionsSampleV Method (SeriesDateTime, V, TimeSpan) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting from the smallest key of the original series, using the specified `interval`
and then finds nearest smaller values close to such keys. The function generates samples
at, or just before the end of an interval and at, or after, the end of the series.
## Parameters
- `series` - An input series to be resampled
- `interval` - The interval between the individual samples
## 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 public static Series<DateTime, V> Sample<V>(
this Series<DateTime, V> series,
TimeSpan interval
)
Parameters
- series
- Type: DeedleSeriesDateTime, V
[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.Sample``1(Deedle.Series{System.DateTime,``0},System.TimeSpan)"]
- interval
- Type: SystemTimeSpan
[Missing <param name="interval"/> documentation for "M:Deedle.SeriesExtensions.Sample``1(Deedle.Series{System.DateTime,``0},System.TimeSpan)"]
Type Parameters
- V
Return Value
Type:
SeriesDateTime,
V[Missing <returns> documentation for "M:Deedle.SeriesExtensions.Sample``1(Deedle.Series{System.DateTime,``0},System.TimeSpan)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SeriesDateTime,
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