Click or drag to resize
SeriesExtensionsSampleIntoV Method (SeriesDateTimeOffset, V, TimeSpan, Direction, FuncDateTimeOffset, FSharpFuncSeriesDateTimeOffset, V, Object)
Performs sampling by time and aggregates chunks obtained by time-sampling into a single value using a specified function. The operation generates keys starting at the first key in the source series, using the specified `interval` and then obtains chunks based on these keys in a fashion similar to the `Series.resample` function. ## Parameters - `series` - An input series to be resampled - `interval` - The interval between the individual samples - `dir` - If this parameter is `Direction.Forward`, then each key is used as the smallest key in a chunk; for `Direction.Backward`, the keys are used as the greatest keys in a chunk. - `aggregate` - A function that is called to aggregate each chunk into a single value. ## 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<DateTimeOffset, Object> SampleInto<V>(
	this Series<DateTimeOffset, V> series,
	TimeSpan interval,
	Direction dir,
	Func<DateTimeOffset, FSharpFunc<Series<DateTimeOffset, V>, Object>> aggregate
)

Parameters

series
Type: DeedleSeriesDateTimeOffset, V

[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.SampleInto``1(Deedle.Series{System.DateTimeOffset,``0},System.TimeSpan,Deedle.Direction,System.Func{System.DateTimeOffset,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{System.DateTimeOffset,``0},System.Object}})"]

interval
Type: SystemTimeSpan

[Missing <param name="interval"/> documentation for "M:Deedle.SeriesExtensions.SampleInto``1(Deedle.Series{System.DateTimeOffset,``0},System.TimeSpan,Deedle.Direction,System.Func{System.DateTimeOffset,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{System.DateTimeOffset,``0},System.Object}})"]

dir
Type: DeedleDirection

[Missing <param name="dir"/> documentation for "M:Deedle.SeriesExtensions.SampleInto``1(Deedle.Series{System.DateTimeOffset,``0},System.TimeSpan,Deedle.Direction,System.Func{System.DateTimeOffset,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{System.DateTimeOffset,``0},System.Object}})"]

aggregate
Type: SystemFuncDateTimeOffset, FSharpFuncSeriesDateTimeOffset, V, Object

[Missing <param name="aggregate"/> documentation for "M:Deedle.SeriesExtensions.SampleInto``1(Deedle.Series{System.DateTimeOffset,``0},System.TimeSpan,Deedle.Direction,System.Func{System.DateTimeOffset,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{System.DateTimeOffset,``0},System.Object}})"]

Type Parameters

V

Return Value

Type: SeriesDateTimeOffset, Object

[Missing <returns> documentation for "M:Deedle.SeriesExtensions.SampleInto``1(Deedle.Series{System.DateTimeOffset,``0},System.TimeSpan,Deedle.Direction,System.Func{System.DateTimeOffset,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{System.DateTimeOffset,``0},System.Object}})"]

Usage Note

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