Click or drag to resize
SeriesExtensionsSampleInto Method
Overload List
  NameDescription
Public methodStatic memberSampleIntoV(SeriesDateTime, V, TimeSpan, Direction, FuncDateTime, FSharpFuncSeriesDateTime, 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]
Public methodStatic memberSampleIntoV(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]
Top
See Also