Click or drag to resize
SeriesModulesampleTimeAtIntoK, V, a Method
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 given `start` time, 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 - `start` - The initial time to be used for sampling - `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. - `f` - 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:Sampling, resampling and advanced lookup]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, a> sampleTimeAtInto<K, V, a>(
	K start,
	TimeSpan interval,
	Direction dir,
	FSharpFunc<Series<K, V>, a> f,
	Series<K, V> series
)

Parameters

start
Type: K

[Missing <param name="start"/> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

interval
Type: SystemTimeSpan

[Missing <param name="interval"/> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

dir
Type: DeedleDirection

[Missing <param name="dir"/> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

f
Type: Microsoft.FSharp.CoreFSharpFuncSeriesK, V, a

[Missing <param name="f"/> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

series
Type: DeedleSeriesK, V

[Missing <param name="series"/> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

Type Parameters

K
V
a

Return Value

Type: SeriesK, a

[Missing <returns> documentation for "M:Deedle.SeriesModule.sampleTimeAtInto``3(``0,System.TimeSpan,Deedle.Direction,Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``1},``2},Deedle.Series{``0,``1})"]

See Also