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, C> Resample<C>(
this DataFrame<DateTime, C> frame,
Recurrence recurrence,
IList<AggregatorGroup> aggregators,
Direction direction = Direction.Backward
)
<ExtensionAttribute>
Public Shared Function Resample(Of C) (
frame As DataFrame(Of DateTime, C),
recurrence As Recurrence,
aggregators As IList(Of AggregatorGroup),
Optional direction As Direction = Direction.Backward
) As DataFrame(Of DateTime, C)
public:
[ExtensionAttribute]
generic<typename C>
static DataFrame<DateTime, C>^ Resample(
DataFrame<DateTime, C>^ frame,
Recurrence^ recurrence,
IList<AggregatorGroup^>^ aggregators,
Direction direction = Direction::Backward
)
[<ExtensionAttribute>]
static member Resample :
frame : DataFrame<DateTime, 'C> *
recurrence : Recurrence *
aggregators : IList<AggregatorGroup> *
?direction : Direction
(* Defaults:
let _direction = defaultArg direction Direction.Backward
*)
-> DataFrame<DateTime, 'C>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameDateTime, C
A data frame. - recurrence
- Type: Extreme.DataAnalysisRecurrence
The recurrence pattern to resample to. - aggregators
- Type: System.Collections.GenericIListAggregatorGroup
A list of aggregators. - 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
Return Value
Type:
DataFrameDateTime,
CA new data frame which is the result of resampling
each column with the corresponding aggregator
in
aggregators.
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