Creates a grouping that resamples the observations
according to the specified recurrence.
Namespace: Extreme.CollectionsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
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.CollectionsIndexDateTime
The original index. - recurrence
- Type: Extreme.CollectionsRecurrence
The recurrence pattern to resample to. - direction (Optional)
- Type: Extreme.CollectionsDirection
Indicates whether the entries in newIndex
should be taken as the start (Forward) or end (Backward) of a sampling interval.
Return Value
Type:
GroupingDateTimeA grouping object that represents the resampling.
Numerical Libraries
Supported in: 5.x
Reference