T
- Type of data in histogramD
- Type of input datapublic class AggregatingHistogram<T,D> extends ReplacingHistogram<T>
Modifier and Type | Class and Description |
---|---|
static class |
AggregatingHistogram.Adapter<T,D>
Adapter class for an AggregatingHistogram
|
ReplacingHistogram.Iter, ReplacingHistogram.RIter
Modifier and Type | Field and Description |
---|---|
private AggregatingHistogram.Adapter<T,D> |
putter
The class we are using for putting data.
|
Constructor and Description |
---|
AggregatingHistogram(int bins,
double min,
double max,
AggregatingHistogram.Adapter<T,D> adapter)
Constructor with Adapter.
|
Modifier and Type | Method and Description |
---|---|
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. |
DoubleDoubleHistogram, DoubleHistogram, get, getBinNr, getBinsize, getCoverMaximum, getCoverMinimum, getData, getNumBins, IntHistogram, IntIntHistogram, iterator, make, replace, reverseIterator
private AggregatingHistogram.Adapter<T,D> putter
public AggregatingHistogram(int bins, double min, double max, AggregatingHistogram.Adapter<T,D> adapter)
bins
- Number of binsmin
- Minimum valuemax
- Maximum valueadapter
- Adapterpublic 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
objectsbins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinateMeanVariance
.public static AggregatingHistogram<Integer,Integer> IntSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinatepublic static AggregatingHistogram<Long,Long> LongSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinatepublic static AggregatingHistogram<Double,Double> DoubleSumHistogram(int bins, double min, double max)
bins
- Number of binsmin
- Minimum coordinatemax
- Maximum coordinatepublic 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 valuepublic 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 valuepublic 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