Package org.ojalgo.function.aggregator
Class AggregatorSet<N extends Comparable<N>>
java.lang.Object
org.ojalgo.function.aggregator.AggregatorSet<N>
- Direct Known Subclasses:
BigAggregator
,ComplexAggregator
,PrimitiveAggregator
,QuadrupleAggregator
,QuaternionAggregator
,RationalAggregator
Do not cache instances of this class! The methods BigAggregator.getSet(),
ComplexAggregator.getSet() and PrimitiveAggregator.getSet() return threadlocal
instances, and when you access the individual aggregators they are AggregatorFunction.reset()
for you.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AggregatorFunction
<N> average()
Average valueabstract AggregatorFunction
<N> Count of non-zero elementsfinal AggregatorFunction
<N> get
(Aggregator aggregator) abstract AggregatorFunction
<N> largest()
Largest absolute valueabstract AggregatorFunction
<N> maximum()
Max valueabstract AggregatorFunction
<N> minimum()
Min valueabstract AggregatorFunction
<N> norm1()
Sum of absolute valuesabstract AggregatorFunction
<N> norm2()
Square root of sum of squared valuesabstract AggregatorFunction
<N> product()
Running productabstract AggregatorFunction
<N> product2()
Running product of squaresabstract AggregatorFunction
<N> smallest()
Smallest non-zero absolute valueabstract AggregatorFunction
<N> sum()
Running sumabstract AggregatorFunction
<N> sum2()
Running sum of squares
-
Constructor Details
-
AggregatorSet
protected AggregatorSet()
-
-
Method Details
-
average
Average value -
cardinality
Count of non-zero elements -
get
-
largest
Largest absolute value -
maximum
Max value -
minimum
Min value -
norm1
Sum of absolute values -
norm2
Square root of sum of squared values -
product
Running product -
product2
Running product of squares -
smallest
Smallest non-zero absolute value -
sum
Running sum -
sum2
Running sum of squares
-