de.lmu.ifi.dbs.elki.math
Class FlexiHistogram.Adapter<T,D>
java.lang.Object
de.lmu.ifi.dbs.elki.math.ReplacingHistogram.Adapter<T>
de.lmu.ifi.dbs.elki.math.AggregatingHistogram.Adapter<T,D>
de.lmu.ifi.dbs.elki.math.FlexiHistogram.Adapter<T,D>
- Type Parameters:
T
- Type of data in histogramD
- Type of input data
- Enclosing class:
- FlexiHistogram<T,D>
public abstract static class FlexiHistogram.Adapter<T,D>
- extends AggregatingHistogram.Adapter<T,D>
Adapter interface to specify bin creation, data caching and combination.
Method Summary |
abstract D |
cloneForCache(D data)
Clone a data passed to the algorithm for computing the initial size. |
abstract T |
downsample(T first,
T second)
Rule to combine two bins into one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlexiHistogram.Adapter
public FlexiHistogram.Adapter()
downsample
public abstract T downsample(T first,
T second)
- Rule to combine two bins into one.
first and second MAY be modified and returned.
- Parameters:
first
- First bin valuesecond
- Second bin value
- Returns:
- combined bin value
cloneForCache
public abstract D cloneForCache(D data)
- Clone a data passed to the algorithm for computing the initial size.
- Parameters:
data
- Data to be cloned
- Returns:
- cloned data