|
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.MedianAggregator
public class MedianAggregator
Median aggregator. Note that for an even number of elements this aggregator returns the mean value of both middle elements.
Constructor Summary | |
---|---|
MedianAggregator()
|
Method Summary | |
---|---|
double |
aggregate(java.util.Collection<? extends java.lang.Number> values)
Aggregates by finding the median. |
double |
getNeutralElement()
Returns Double.NaN . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MedianAggregator()
Method Detail |
---|
public double aggregate(java.util.Collection<? extends java.lang.Number> values)
aggregate
in interface IAggregator
Double.NaN
for empty input collectionpublic double getNeutralElement()
Double.NaN
.
getNeutralElement
in interface IAggregator
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |