Vector<T>.Resample<U>(Recurrence, Direction, Aggregator Group<U>) Method
Returns a new vector that resamples the values in the vector using the specified
recurrence pattern and aggregator.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A vector that contains the resampled values.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<U> Resample<U>(
Recurrence recurrence,
Direction direction,
AggregatorGroup<U> aggregator
)
Parameters
- recurrence Recurrence
- The new index.
- direction Direction
- Indicates whether the keys in the new index should be taken from the start (Forward) or end (Backward) of a sampling interval.
- aggregator AggregatorGroup<U>
- The aggregator to use on each group.
Type Parameters
- U
- The element type of the result.
Return Value
Vector<U>A vector that contains the resampled values.
Exceptions
Argument | aggregator is null. |
Invalid | The vector's index is not of type DateTime. |
Invalid | The vector's index is not sorted. |