edu.tum.cs.commons.math
Class SumAggregator
java.lang.Object
edu.tum.cs.commons.math.PairwiseAggregatorBase
edu.tum.cs.commons.math.SumAggregator
- All Implemented Interfaces:
- IAggregator
public class SumAggregator
- extends PairwiseAggregatorBase
Sum aggregator.
- Version:
- $Rev: 28099 $
- Author:
- deissenb, $Author: hummelb $
- Rating:
- GREEN Hash: 2BC7AD863CFA78522BE30785E9043E5F
|
Method Summary |
protected double |
aggregate(double aggregate,
double value)
Calculate aggregate of two values. |
double |
getNeutralElement()
Returns zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumAggregator
public SumAggregator()
getNeutralElement
public double getNeutralElement()
- Returns zero.
aggregate
protected double aggregate(double aggregate,
double value)
- Calculate aggregate of two values.
- Specified by:
aggregate in class PairwiseAggregatorBase
- Parameters:
aggregate - the value that has been aggregated by previous pairwise
aggregationsvalue - the new value
TUM CCSM Commons - 2.7