TUM CCSM Commons

edu.tum.cs.commons.math
Interface IAggregator

All Known Implementing Classes:
MaxAggregator, MeanAggregator, MedianAggregator, MinAggregator, PairwiseAggregatorBase, SumAggregator

public interface IAggregator

Aggregtor interface.

Version:
$Rev: 28099 $
Author:
deissenb, $Author: hummelb $
Rating:
GREEN Hash: 07B1BC375A02AAB32E730C81ACD72882

Method Summary
 double aggregate(java.util.Collection<? extends java.lang.Number> values)
          Aggregate collection of values to one value.
 double getNeutralElement()
          Get the neutral element of this aggregation operator.
 

Method Detail

aggregate

double aggregate(java.util.Collection<? extends java.lang.Number> values)
Aggregate collection of values to one value. Implementing classes may return non-normal numbers, e.g. Double.NaN for the median of an empty collections.


getNeutralElement

double getNeutralElement()
Get the neutral element of this aggregation operator. This may return non-normal numbers, e.g. Double.NaN or Double.POSITIVE_INFINITY .


TUM CCSM Commons

TUM CCSM Commons - 2.7