org.ojalgo.function.aggregator
Class AggregatorFunction.Collection<N extends Number>

java.lang.Object
  extended by org.ojalgo.function.aggregator.AggregatorFunction.Collection<N>
Enclosing interface:
AggregatorFunction<N extends Number>

public static final class AggregatorFunction.Collection<N extends Number>
extends Object

Do not cache copies 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
 AggregatorFunction<N> cardinality()
          Count of non-zero elements
 AggregatorFunction<N> largest()
          Largest absolute value
 AggregatorFunction<N> norm(int aParameter)
          Root of sum of powers - Must set the "parameter"
 AggregatorFunction<N> product()
          Running product
 AggregatorFunction<N> smallest()
          Smallest non-zero absolute value
 AggregatorFunction<N> sum()
          Running sum
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cardinality

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


largest

public AggregatorFunction<N> largest()
Largest absolute value


norm

public AggregatorFunction<N> norm(int aParameter)
Root of sum of powers - Must set the "parameter"


product

public AggregatorFunction<N> product()
Running product


smallest

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


sum

public AggregatorFunction<N> sum()
Running sum