org.ojalgo.function.aggregator
Class ComplexAggregator

java.lang.Object
  extended by org.ojalgo.function.aggregator.ComplexAggregator
All Implemented Interfaces:
AggregatorFunction<ComplexNumber>

public class ComplexAggregator
extends Object


Field Summary
static ThreadLocal<ComplexAggregator> CARDINALITY
           
static ThreadLocal<ComplexAggregator> LARGEST
           
static ThreadLocal<ComplexAggregator> NORM
           
static ThreadLocal<ComplexAggregator> PRODUCT
           
static ThreadLocal<ComplexAggregator> SUM
           
 
Constructor Summary
ComplexAggregator(ComplexNumber anInit, BinaryFunction<ComplexNumber> anAggregator)
           
 
Method Summary
 double doubleValue()
           
 N getNumber()
           
 void invoke(double anArg)
           
 void invoke(N anArg)
           
 void reset()
           
 void setParameter(int aParameter)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CARDINALITY

public static final ThreadLocal<ComplexAggregator> CARDINALITY

LARGEST

public static final ThreadLocal<ComplexAggregator> LARGEST

NORM

public static final ThreadLocal<ComplexAggregator> NORM

PRODUCT

public static final ThreadLocal<ComplexAggregator> PRODUCT

SUM

public static final ThreadLocal<ComplexAggregator> SUM
Constructor Detail

ComplexAggregator

public ComplexAggregator(ComplexNumber anInit,
                         BinaryFunction<ComplexNumber> anAggregator)
Method Detail

doubleValue

public final double doubleValue()
Specified by:
doubleValue in interface AggregatorFunction<N extends Number>

getNumber

public N getNumber()
Specified by:
getNumber in interface AggregatorFunction<N extends Number>

invoke

public final void invoke(double anArg)
Specified by:
invoke in interface AggregatorFunction<N extends Number>

invoke

public void invoke(N anArg)
Specified by:
invoke in interface AggregatorFunction<N extends Number>

reset

public final void reset()
Specified by:
reset in interface AggregatorFunction<N extends Number>

setParameter

public void setParameter(int aParameter)
Specified by:
setParameter in interface AggregatorFunction<N extends Number>