|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.math.ReplacingHistogram<T> de.lmu.ifi.dbs.elki.math.AggregatingHistogram<T,D>
T
- Type of data in histogramD
- Type of input datapublic class AggregatingHistogram<T,D>
Class for the typical case of an aggregating (e.g. counting, averaging) Histogram.
Nested Class Summary | |
---|---|
static class |
AggregatingHistogram.Adapter<T,D>
Adapter class for an AggregatingHistogram |
Nested classes/interfaces inherited from class de.lmu.ifi.dbs.elki.math.ReplacingHistogram |
---|
ReplacingHistogram.Iter, ReplacingHistogram.RIter |
Field Summary | |
---|---|
private AggregatingHistogram.Adapter<T,D> |
putter
The class we are using for putting data. |
Fields inherited from class de.lmu.ifi.dbs.elki.math.ReplacingHistogram |
---|
base, binsize, data, max, offset, size |
Constructor Summary | |
---|---|
AggregatingHistogram(int bins,
double min,
double max,
AggregatingHistogram.Adapter<T,D> adapter)
Constructor with Adapter. |
Method Summary | |
---|---|
void |
aggregate(double coord,
D value)
Add a value to the histogram using the aggregation adapter. |
static AggregatingHistogram<Pair<Double,Double>,Pair<Double,Double>> |
DoubleSumDoubleSumHistogram(int bins,
double min,
double max)
Histograms that work like two DoubleSumHistogram(int, double, double) , component wise. |
static AggregatingHistogram<Double,Double> |
DoubleSumHistogram(int bins,
double min,
double max)
Convenience constructor for Double-based Histograms. |
static AggregatingHistogram<Integer,Integer> |
IntSumHistogram(int bins,
double min,
double max)
Convenience constructor for Integer-based Histograms. |
static AggregatingHistogram<Pair<Integer,Integer>,Pair<Integer,Integer>> |
IntSumIntSumHistogram(int bins,
double min,
double max)
Histograms that work like two IntSumHistogram(int, double, double) , component wise. |
static AggregatingHistogram<Long,Long> |
LongSumHistogram(int bins,
double min,
double max)
Convenience constructor for Long-based Histograms. |
static AggregatingHistogram<Pair<Long,Long>,Pair<Long,Long>> |
LongSumLongSumHistogram(int bins,
double min,
double max)
Histograms that work like two LongSumHistogram(int, double, double) , component wise. |
static AggregatingHistogram<MeanVariance,Double> |
MeanVarianceHistogram(int bins,
double min,
double max)
Convenience constructor for MeanVariance -based Histograms. |
Methods inherited from class de.lmu.ifi.dbs.elki.math.ReplacingHistogram |
---|
DoubleDoubleHistogram, DoubleHistogram, get, getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getData, getNumBins, IntHistogram, IntIntHistogram, iterator, make, replace, reverseIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AggregatingHistogram.Adapter<T,D> putter
Constructor Detail |
---|
public AggregatingHistogram(int bins, double min, double max, AggregatingHistogram.Adapter<T,D> adapter)
bins
- Number of binsmin
- Minimum valuemax
- Maximum valueadapter
- AdapterMethod Detail |
---|
public void aggregate(double coord, D value)
coord
- Coordinatevalue
- New valuepublic static AggregatingHistogram<MeanVariance,Double> MeanVarianceHistogram(int bins, double min, double max)
MeanVariance
-based Histograms. Uses a
constructor to initialize bins with new MeanVariance
objects
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinate
MeanVariance
.public static AggregatingHistogram<Integer,Integer> IntSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinate
public static AggregatingHistogram<Long,Long> LongSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinate
public static AggregatingHistogram<Double,Double> DoubleSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinate
public static AggregatingHistogram<Pair<Integer,Integer>,Pair<Integer,Integer>> IntSumIntSumHistogram(int bins, double min, double max)
IntSumHistogram(int, double, double)
, component wise.
bins
- Number of bins.min
- Minimum valuemax
- Maximum value
public static AggregatingHistogram<Pair<Long,Long>,Pair<Long,Long>> LongSumLongSumHistogram(int bins, double min, double max)
LongSumHistogram(int, double, double)
, component wise.
bins
- Number of bins.min
- Minimum valuemax
- Maximum value
public static AggregatingHistogram<Pair<Double,Double>,Pair<Double,Double>> DoubleSumDoubleSumHistogram(int bins, double min, double max)
DoubleSumHistogram(int, double, double)
, component wise.
bins
- Number of bins.min
- Minimum valuemax
- Maximum value
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |