net.sf.saffron.ext
Class Median
java.lang.Object
|
+--net.sf.saffron.ext.Median
- All Implemented Interfaces:
- AggregationExtender
- public class Median
- extends Object
- implements AggregationExtender
Median
is an aggregation which returns the Median of a set of
points.
- Since:
- 26 January, 2001
- Version:
- $Id: //open/saffron/src/net/sf/saffron/ext/Median.java#2 $
- Author:
- jhyde
Method Summary |
Comparable |
aggregate(Comparable value)
|
Comparable[] |
aggregate(Comparable v0,
Comparable v1)
|
int |
aggregate(int value)
|
Object |
merge(Comparable v0,
Comparable v1,
Object accumulator1,
Object accumulator2)
|
Object |
merge(Comparable value,
Object accumulator1,
Object accumulator2)
|
Object |
merge(int value,
Object accumulator1,
Object accumulator2)
|
Object |
next(Comparable v0,
Comparable v1,
Object accumulator)
|
Object |
next(Comparable value,
Object accumulator)
|
Object |
next(int value,
Object accumulator)
|
Comparable[] |
result(Comparable v0,
Comparable v1,
Object accumulator)
|
Object |
result(Comparable value,
Object accumulator)
|
int |
result(int value,
Object accumulator)
|
Object |
start(Comparable value)
|
Object |
start(Comparable v0,
Comparable v1)
|
Object |
start(int value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Median
public Median()
aggregate
public Comparable aggregate(Comparable value)
aggregate
public int aggregate(int value)
aggregate
public Comparable[] aggregate(Comparable v0,
Comparable v1)
merge
public Object merge(Comparable value,
Object accumulator1,
Object accumulator2)
merge
public Object merge(int value,
Object accumulator1,
Object accumulator2)
merge
public Object merge(Comparable v0,
Comparable v1,
Object accumulator1,
Object accumulator2)
next
public Object next(Comparable value,
Object accumulator)
next
public Object next(int value,
Object accumulator)
next
public Object next(Comparable v0,
Comparable v1,
Object accumulator)
result
public Object result(Comparable value,
Object accumulator)
result
public int result(int value,
Object accumulator)
result
public Comparable[] result(Comparable v0,
Comparable v1,
Object accumulator)
start
public Object start(Comparable value)
start
public Object start(int value)
start
public Object start(Comparable v0,
Comparable v1)