Binary Aggregator<T1, T2, TResult>.Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Aggregate( | Aggregates the elements of two sequences pairwise and returns the result. |
Aggregate( | Aggregates the elements of two span slices pairwise and returns the result. |
Aggregate( | Aggregates the elements of two span slices pairwise and returns the result. |
Aggregate( | Aggregates the specified elements of a vector and returns the result. |
Aggregate( | Aggregates the specified range of elements of a vector and returns the result. |
Aggregate(IEnumerable<T1>, IEnumerable<T2>, Boolean)
Aggregates the elements of two sequences pairwise and returns the result.
public TResult Aggregate(
IEnumerable<T1> values1,
IEnumerable<T2> values2,
bool skipMissingValues = false
)
Parameters
- values1 IEnumerable<T1>
- A vector of values.
- values2 IEnumerable<T2>
- A vector of values.
- skipMissingValues Boolean (Optional)
- Indicates whether missing values should be filtered from the sequence.
Return Value
TResultThe result of the aggregation.
Aggregate(ReadOnlySpan<T1>, ReadOnlySpan<T2>, Boolean)
Aggregates the elements of two span slices pairwise and returns the result.
public TResult Aggregate(
ReadOnlySpan<T1> values1,
ReadOnlySpan<T2> values2,
bool skipMissingValues = false
)
Parameters
- values1 ReadOnlySpan<T1>
- A read-only span of values.
- values2 ReadOnlySpan<T2>
- A read-only span of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Return Value
TResultThe result of the aggregation.
Aggregate(Int32, ReadOnlySpanSlice<T1>, ReadOnlySpanSlice<T2>, Boolean)
Aggregates the elements of two span slices pairwise and returns the result.
public TResult Aggregate(
int length,
ReadOnlySpanSlice<T1> values1,
ReadOnlySpanSlice<T2> values2,
bool skipMissingValues = false
)
Parameters
- length Int32
- The number of elements to include in the aggregation.
- values1 ReadOnlySpanSlice<T1>
- A span of values.
- values2 ReadOnlySpanSlice<T2>
- A span of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Return Value
TResultThe result of the aggregation.
Aggregate(Vector<T1>, Vector<T2>, Array1D<Int32>, Int32, Boolean)
Aggregates the specified elements of a vector and returns the result.
public virtual TResult Aggregate(
Vector<T1> values1,
Vector<T2> values2,
Array1D<int> indexes,
int length,
bool skipMissingValues = false
)
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values1 and values2 that will be aggregated.
- length Int32
- The number of values to aggregate.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Return Value
TResultThe result of the aggregation.
Aggregate(Vector<T1>, Vector<T2>, Int32, Int32, Boolean)
Aggregates the specified range of elements of a vector and returns the result.
public virtual TResult Aggregate(
Vector<T1> values1,
Vector<T2> values2,
int startIndex,
int endIndex,
bool skipMissingValues = false
)
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values1 and values2 that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values1 and values2 and values2 that should be aggregated.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Return Value
TResultThe result of the aggregation.