Returns a new vector that aggregates the values in a sliding window
of the specified size.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<U> Window<U>(
int size,
AggregatorGroup<U> aggregator
)
Public Function Window(Of U) (
size As Integer,
aggregator As AggregatorGroup(Of U)
) As Vector(Of U)
public:
generic<typename U>
Vector<U>^ Window(
int size,
AggregatorGroup<U>^ aggregator
)
member Window :
size : int *
aggregator : AggregatorGroup<'U> -> Vector<'U>
Parameters
- size
- Type: SystemInt32
The size of the window. - aggregator
- Type: Extreme.DataAnalysisAggregatorGroupU
The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Type:
VectorUA new vector, indexed by the index of the first element
in the window,
and as values the result of applying
aggregator
to each window.
Reference