Resamples the rows of the data frame
according to the specified recurrence.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<DateTime, C1> Resample<C, C1>(
this DataFrame<DateTime, C> frame,
Recurrence recurrence,
IEnumerable<(C , AggregatorGroup )> aggregators,
Index<C1> newIndex,
Direction direction = Direction.Backward
)
<ExtensionAttribute>
Public Shared Function Resample(Of C, C1) (
frame As DataFrame(Of DateTime, C),
recurrence As Recurrence,
aggregators As IEnumerable(Of ( As C, As AggregatorGroup)),
newIndex As Index(Of C1),
Optional direction As Direction = Direction.Backward
) As DataFrame(Of DateTime, C1)
public:
[ExtensionAttribute]
generic<typename C, typename C1>
static DataFrame<DateTime, C1>^ Resample(
DataFrame<DateTime, C>^ frame,
Recurrence^ recurrence,
IEnumerable<ValueTuple<C, AggregatorGroup^>>^ aggregators,
Index<C1>^ newIndex,
Direction direction = Direction::Backward
)
[<ExtensionAttribute>]
static member Resample :
frame : DataFrame<DateTime, 'C> *
recurrence : Recurrence *
aggregators : IEnumerable<ValueTuple<'C, AggregatorGroup>> *
newIndex : Index<'C1> *
?direction : Direction
(* Defaults:
let _direction = defaultArg direction Direction.Backward
*)
-> DataFrame<DateTime, 'C1>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameDateTime, C
A data frame. - recurrence
- Type: Extreme.DataAnalysisRecurrence
The recurrence pattern to resample to. - aggregators
- Type: System.Collections.GenericIEnumerableValueTupleC, AggregatorGroup
A sequence of tuples of column keys and aggregators. - newIndex
- Type: Extreme.DataAnalysisIndexC1
The column index of the new data frame. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Indicates whether the entries in
frame's row index should be taken as
the start (Forward) or end (Backward) of a sampling interval.
Type Parameters
- C
- C1
Return Value
Type:
DataFrameDateTime,
C1A new data frame with a column for each key-aggregator tuple
in
aggregators which is the result of resampling
the column with the key using the specified recurrence pattern
and the aggregator.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataFrameDateTime,
C. 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).
Reference