public class RealBinMapper<T extends RealType<T>> extends Object implements HistogramBinMapper<T>
| Constructor and Description |
|---|
RealBinMapper(T minBin,
T maxBin,
int numBins)
Creates a RealBinMapper for a histogram with the given minimum bin
center, maximum bin center, and number of bins.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBinWidth() |
T |
getMaxBin()
Returns the maximum bin for the histogram.
|
T |
getMinBin()
Returns the minimum bin for the histogram.
|
int |
getNumBins()
Returns the number of bins for the histogram.
|
T |
invMap(int i)
Maps a given histogram bin index to a Type containing the bin center
value.
|
int |
map(T type)
Maps a given Type to its histogram bin.
|
public RealBinMapper(T minBin, T maxBin, int numBins)
minBin - the minimal bin center.maxBin - the maximal bin center.numBins - the number of histogram bins to use.public T getMaxBin()
HistogramBinMappergetMaxBin in interface HistogramBinMapper<T extends RealType<T>>public T getMinBin()
HistogramBinMappergetMinBin in interface HistogramBinMapper<T extends RealType<T>>public int getNumBins()
HistogramBinMappergetNumBins in interface HistogramBinMapper<T extends RealType<T>>public T invMap(int i)
HistogramBinMapperinvMap in interface HistogramBinMapper<T extends RealType<T>>i - the histogram bin index to map.public int map(T type)
HistogramBinMappermap in interface HistogramBinMapper<T extends RealType<T>>type - the Type to map.public double getBinWidth()
Copyright © 2015–2022 ImgLib2. All rights reserved.