Binary Aggregator<T1, T2, TResult>.Aggregate Where Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Aggregate | Aggregates the elements of two sequences pairwise subject to a predicate, and returns the result. |
Aggregate | Aggregates the elements of two spans pairwise and returns the result. |
Aggregate | Aggregates the elements of a vector and returns the result. |
Aggregate | Aggregates the elements of two span slices pairwise and returns the result. |
AggregateWhere<TPredicate>(IEnumerable<T1>, IEnumerable<T2>, TPredicate, Boolean)
Aggregates the elements of two sequences pairwise subject to a predicate,
and returns the result.
public TResult AggregateWhere<TPredicate>(
IEnumerable<T1> values1,
IEnumerable<T2> values2,
TPredicate predicate,
bool skipMissingValues = false
)
where TPredicate : struct, new(), IFastFunc<T1, T2, bool>
Parameters
- values1 IEnumerable<T1>
- A vector of values.
- values2 IEnumerable<T2>
- A vector of values.
- predicate TPredicate
- The predicate that determines whether a given input is to be included in the aggregation.
- skipMissingValues Boolean (Optional)
- Specifies whether missing values should be excluded from the aggregation.
Type Parameters
- TPredicate
- The type of predicate.
Return Value
TResultThe result of the aggregation.
Remarks
predicate is evaluated for each pair of
corresponding elements of values1 and
values2. If the result is true,
then the values are included in the aggregation.
AggregateWhere<TPredicate>(ReadOnlySpan<T1>, ReadOnlySpan<T2>, TPredicate, Boolean)
Aggregates the elements of two spans pairwise and returns the result.
public TResult AggregateWhere<TPredicate>(
ReadOnlySpan<T1> values1,
ReadOnlySpan<T2> values2,
TPredicate predicate,
bool skipMissingValues = false
)
where TPredicate : struct, new(), IFastFunc<T1, T2, bool>
Parameters
- values1 ReadOnlySpan<T1>
- A span of values.
- values2 ReadOnlySpan<T2>
- A span of values.
- predicate TPredicate
- The predicate that determines whether a given input is to be included in the aggregation.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- TPredicate
- The type of predicate.
Return Value
TResultThe result of the aggregation.
Remarks
predicate is evaluated for each pair of
corresponding elements of values1 and
values2. If the result is true,
then the values are included in the aggregation.
AggregateWhere<TPredicate>(Vector<T1>, Vector<T2>, TPredicate, Boolean)
Aggregates the elements of a vector and returns the result.
public virtual TResult AggregateWhere<TPredicate>(
Vector<T1> values1,
Vector<T2> values2,
TPredicate predicate,
bool skipMissingValues
)
where TPredicate : struct, new(), IFastFunc<T1, T2, bool>
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- predicate TPredicate
- The predicate that determines whether a given input is to be included in the aggregation.
- skipMissingValues Boolean
- Specifies whether missing values should be excluded from the aggregation.
Type Parameters
- TPredicate
- The type of predicate.
Return Value
TResultThe result of the aggregation.
AggregateWhere<TPredicate>(Int32, ReadOnlySpanSlice<T1>, ReadOnlySpanSlice<T2>, TPredicate, Boolean)
Aggregates the elements of two span slices pairwise and returns the result.
public TResult AggregateWhere<TPredicate>(
int length,
ReadOnlySpanSlice<T1> values1,
ReadOnlySpanSlice<T2> values2,
TPredicate predicate,
bool skipMissingValues = false
)
where TPredicate : struct, new(), IFastFunc<T1, T2, bool>
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.
- predicate TPredicate
- The predicate that determines whether a given input is to be included in the aggregation.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- TPredicate
- The type of predicate.
Return Value
TResultThe result of the aggregation.
Remarks
predicate is evaluated for each pair of
corresponding elements of values1 and
values2. If the result is true,
then the values are included in the aggregation.