Returns a new vector that resamples the values in the vector using the specified
recurrence pattern and aggregator.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<T> Resample(
Recurrence recurrence,
Direction direction = Direction.Backward,
TypePreservingAggregatorGroup aggregator = null
)
Public Function Resample (
recurrence As Recurrence,
Optional direction As Direction = Direction.Backward,
Optional aggregator As TypePreservingAggregatorGroup = Nothing
) As Vector(Of T)
public:
Vector<T>^ Resample(
Recurrence^ recurrence,
Direction direction = Direction::Backward,
TypePreservingAggregatorGroup^ aggregator = nullptr
)
member Resample :
recurrence : Recurrence *
?direction : Direction *
?aggregator : TypePreservingAggregatorGroup
(* Defaults:
let _direction = defaultArg direction Direction.Backward
let _aggregator = defaultArg aggregator null
*)
-> Vector<'T>
Parameters
- recurrence
- Type: Extreme.DataAnalysisRecurrence
The new index. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Indicates whether the keys in the new index
should be taken as the start (Forward) or end (Backward)
of a sampling interval. - aggregator (Optional)
- Type: Extreme.DataAnalysisTypePreservingAggregatorGroup
The aggregator to use on each group.
Return Value
Type:
VectorTA vector that contains the resampled values.
Reference