saffron.ext
Class Median
java.lang.Object
|
+--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/main/saffron/ext/Median.java#1 $
- 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)
start
public Object start(Comparable value)
next
public Object next(Comparable value,
Object accumulator)
merge
public Object merge(Comparable value,
Object accumulator1,
Object accumulator2)
result
public Object result(Comparable value,
Object accumulator)
aggregate
public int aggregate(int value)
start
public Object start(int value)
next
public Object next(int value,
Object accumulator)
merge
public Object merge(int value,
Object accumulator1,
Object accumulator2)
result
public int result(int value,
Object accumulator)
aggregate
public Comparable[] aggregate(Comparable v0,
Comparable v1)
start
public Object start(Comparable v0,
Comparable v1)
next
public Object next(Comparable v0,
Comparable v1,
Object accumulator)
merge
public Object merge(Comparable v0,
Comparable v1,
Object accumulator1,
Object accumulator2)
result
public Comparable[] result(Comparable v0,
Comparable v1,
Object accumulator)