de.lmu.ifi.dbs.elki.math
Class FlexiHistogram.Adapter<T,D>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.math.ReplacingHistogram.Adapter<T>
      extended by de.lmu.ifi.dbs.elki.math.AggregatingHistogram.Adapter<T,D>
          extended by de.lmu.ifi.dbs.elki.math.FlexiHistogram.Adapter<T,D>
Type Parameters:
T - Type of data in histogram
D - 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.


Constructor Summary
FlexiHistogram.Adapter()
           
 
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 de.lmu.ifi.dbs.elki.math.AggregatingHistogram.Adapter
aggregate
 
Methods inherited from class de.lmu.ifi.dbs.elki.math.ReplacingHistogram.Adapter
make
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexiHistogram.Adapter

public FlexiHistogram.Adapter()
Method Detail

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 value
second - 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

Release 0.4.0 (2011-09-20_1324)