Aggregator<T, U> Class

Represents a function that aggregates the values in a vector.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public abstract class Aggregator<T, U> : IAggregator<U>, 
	IAggregator
Inheritance
Object  →  Aggregator<T, U>
Implements
IAggregator, IAggregator<U>

Type Parameters

T
The element type of the input.
U
The type of the result of the aggregation.

Constructors

Aggregator<T, U>Initializes a new instance of the Aggregator<T, U> class

Properties

EmptyGroupsHaveValue Gets whether the aggregator produces a value for empty groups.
SupportsDirectAggregation Gets whether the aggregator supports computing the aggregation for all groups directly from the group levels.

Methods

Aggregate(ReadOnlySpan<T>) Aggregates the elements of a vector and returns the result.
Aggregate(Vector<T>) Aggregates the elements of a vector and returns the result.
Aggregate(ReadOnlySpan<T>, Int32) Aggregates the elements of a vector and returns the result.
Aggregate(Vector<T>, IGrouping) Aggregates the elements of a vector according to the specified grouping.
Aggregate(ReadOnlySpan<T>, Int32, Func<T, Boolean>) Aggregates over a span and returns the result.
Aggregate(ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32) Aggregates over a span and returns the result.
AggregateInto(Matrix<T>, Vector<U>) Aggregates the columns of a matrix.
AggregateInto(Vector<T>, IGrouping, Vector<U>) Groups the elements of a vector according to the specified grouping.
AggregateInto(Vector<T>, Int32[], Vector<U>) Groups the elements of a vector according to the specified level indexes.
AggregateListwiseInto Aggregates the columns of a matrix.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryAggregate(ReadOnlySpan<T>, U) Aggregates the elements of a vector and returns the result.
TryAggregate(Vector<T>, U) Aggregates the elements of a vector and returns the result.
TryAggregate(IEnumerable<T>, Boolean, U) Aggregates the elements of a sequence and returns the result.
TryAggregate(ReadOnlySpan<T>, Int32, U) Aggregates the elements of a vector and returns the result.
TryAggregate(ReadOnlySpan<T>, Int32, Func<T, Boolean>, U) Aggregates the elements of a vector and returns the result.
TryAggregate(Vector<T>, Array1D<Int32>, Int32, U) Aggregates the specified elements of a vector and returns the result.
TryAggregate(Vector<T>, Int32, Int32, U) Aggregates the specified range of elements of a vector and returns the result.
TryAggregate(ReadOnlySpan<T>, Int32, ReadOnlySpan<Boolean>, Int32, U) Aggregates the elements of a vector and returns the result.
TryGetAccumulator Attempts to get an accumulator with the specified capability.

Operators

Implicit(Func<Vector<T>, U> to Aggregator<T, U>) Implicitly converts an aggregation function to an Aggregator<T, U> object.

See Also