org.ojalgo.function.aggregator
Class AggregatorCollection<N extends Number>

java.lang.Object
  extended by org.ojalgo.function.aggregator.AggregatorCollection<N>

public abstract class AggregatorCollection<N extends Number>
extends Object

Do not cache instances of this class! The methods BigAggregator.getCollection(), ComplexAggregator.getCollection() and PrimitiveAggregator.getCollection() return threadlocal instances, and when you access the individual aggregators they are AggregatorFunction.reset() for you.

Author:
apete

Method Summary
abstract  AggregatorFunction<N> cardinality()
          Count of non-zero elements
abstract  AggregatorFunction<N> largest()
          Largest absolute value
abstract  AggregatorFunction<N> norm1()
          Equivalent to, but probably faster than, norm(1);
abstract  AggregatorFunction<N> norm2()
          Equivalent to, but probably faster than, norm(2);
abstract  AggregatorFunction<N> product()
          Running product
abstract  AggregatorFunction<N> product2()
          Running product of squares
abstract  AggregatorFunction<N> smallest()
          Smallest non-zero absolute value
abstract  AggregatorFunction<N> sum()
          Running sum
abstract  AggregatorFunction<N> sum2()
          Running sum of squares
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cardinality

public abstract AggregatorFunction<N> cardinality()
Count of non-zero elements


largest

public abstract AggregatorFunction<N> largest()
Largest absolute value


norm1

public abstract AggregatorFunction<N> norm1()
Equivalent to, but probably faster than, norm(1);


norm2

public abstract AggregatorFunction<N> norm2()
Equivalent to, but probably faster than, norm(2);


product

public abstract AggregatorFunction<N> product()
Running product


product2

public abstract AggregatorFunction<N> product2()
Running product of squares


smallest

public abstract AggregatorFunction<N> smallest()
Smallest non-zero absolute value


sum

public abstract AggregatorFunction<N> sum()
Running sum


sum2

public abstract AggregatorFunction<N> sum2()
Running sum of squares