Returns a new vector that resamples the values in the vector using the specified
index and aggregator.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<T> Resample<R>(
Index<R> newIndex,
Direction direction = Direction.Backward,
TypePreservingAggregatorGroup aggregator = null
)
Public Function Resample(Of R) (
newIndex As Index(Of R),
Optional direction As Direction = Direction.Backward,
Optional aggregator As TypePreservingAggregatorGroup = Nothing
) As Vector(Of T)
public:
generic<typename R>
Vector<T>^ Resample(
Index<R>^ newIndex,
Direction direction = Direction::Backward,
TypePreservingAggregatorGroup^ aggregator = nullptr
)
member Resample :
newIndex : Index<'R> *
?direction : Direction *
?aggregator : TypePreservingAggregatorGroup
(* Defaults:
let _direction = defaultArg direction Direction.Backward
let _aggregator = defaultArg aggregator null
*)
-> Vector<'T>
Parameters
- newIndex
- Type: Extreme.DataAnalysisIndexR
The new index. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Indicates whether the entries in newIndex
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.
Type Parameters
- R
- The element type of the indexes.
Return Value
Type:
VectorTA vector that contains the resampled values.
Reference