|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.math.PairwiseAggregatorBase
public abstract class PairwiseAggregatorBase
This is a base class for aggregators that have a defined neutral element and operate in pairwise manner.
Constructor Summary | |
---|---|
PairwiseAggregatorBase()
|
Method Summary | |
---|---|
double |
aggregate(java.util.Collection<? extends java.lang.Number> values)
Aggregate collection of values to one value. |
protected abstract double |
aggregate(double aggregate,
double value)
Calculate aggregate of two values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.tum.cs.commons.math.IAggregator |
---|
getNeutralElement |
Constructor Detail |
---|
public PairwiseAggregatorBase()
Method Detail |
---|
public double aggregate(java.util.Collection<? extends java.lang.Number> values)
Double.NaN
for the median of an
empty collections.
aggregate
in interface IAggregator
protected abstract double aggregate(double aggregate, double value)
aggregate
- the value that has been aggregated by previous pairwise
aggregationsvalue
- the new value
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |