org.ojalgo.function.aggregator
Enum Aggregator

java.lang.Object
  extended by java.lang.Enum<Aggregator>
      extended by org.ojalgo.function.aggregator.Aggregator
All Implemented Interfaces:
Serializable, Comparable<Aggregator>

public enum Aggregator
extends Enum<Aggregator>


Enum Constant Summary
CARDINALITY
           
LARGEST
           
NORM1
           
NORM2
           
PRODUCT
           
PRODUCT2
           
SMALLEST
           
SUM
           
SUM2
           
 
Method Summary
 AggregatorFunction<BigDecimal> getBigFunction()
           
 AggregatorFunction<ComplexNumber> getComplexFunction()
           
<N extends Number>
AggregatorFunction<N>
getFunction(Class<?> aType)
           
 AggregatorFunction<Double> getPrimitiveFunction()
           
 AggregatorFunction<RationalNumber> getRationalFunction()
           
static Aggregator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Aggregator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CARDINALITY

public static final Aggregator CARDINALITY

LARGEST

public static final Aggregator LARGEST

NORM1

public static final Aggregator NORM1

NORM2

public static final Aggregator NORM2

PRODUCT

public static final Aggregator PRODUCT

PRODUCT2

public static final Aggregator PRODUCT2

SMALLEST

public static final Aggregator SMALLEST

SUM

public static final Aggregator SUM

SUM2

public static final Aggregator SUM2
Method Detail

values

public static Aggregator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Aggregator c : Aggregator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Aggregator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getBigFunction

public final AggregatorFunction<BigDecimal> getBigFunction()

getComplexFunction

public final AggregatorFunction<ComplexNumber> getComplexFunction()

getFunction

public final <N extends Number> AggregatorFunction<N> getFunction(Class<?> aType)

getPrimitiveFunction

public final AggregatorFunction<Double> getPrimitiveFunction()

getRationalFunction

public final AggregatorFunction<RationalNumber> getRationalFunction()