Creates a grouping that resamples the observations
according to the specified recurrence.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Grouping<DateTime> Resample(
Index<DateTime> index,
Recurrence recurrence,
Direction direction = Direction.Backward
)
Public Shared Function Resample (
index As Index(Of DateTime),
recurrence As Recurrence,
Optional direction As Direction = Direction.Backward
) As Grouping(Of DateTime)
public:
static Grouping<DateTime>^ Resample(
Index<DateTime>^ index,
Recurrence^ recurrence,
Direction direction = Direction::Backward
)
static member Resample :
index : Index<DateTime> *
recurrence : Recurrence *
?direction : Direction
(* Defaults:
let _direction = defaultArg direction Direction.Backward
*)
-> Grouping<DateTime>
Parameters
- index
- Type: Extreme.DataAnalysisIndexDateTime
The original index. - recurrence
- Type: Extreme.DataAnalysisRecurrence
The recurrence pattern to resample to. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Indicates whether the entries in index
should be taken as the start (Forward) or end (Backward) of a sampling interval.
Return Value
Type:
GroupingDateTimeA grouping object that represents the resampling.
Reference