Constructor and Description |
---|
BinMapper(Scale scale,
double scaleWidth,
double binPhase,
double dpoint)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getBinIndex(double dvalue)
Returns the bin index for a given value.
|
double[] |
getBinLimits(int index)
Returns the bin limits for a given bin index.
|
int |
hashCode() |
public BinMapper(Scale scale, double scaleWidth, double binPhase, double dpoint)
The dpoint
parameter is used internally to determine
the zero point of the bins. In principle this should make no
difference to behaviour, but in case that the data is situated
a very long way from 1, setting it close to
the actual data point locations may avoid rounding errors.
scale
- axis scalingscaleWidth
- extent of bins in scale unitsbinPhase
- determines sub-bin boundary shifts along axis,
normally in range 0..1dpoint
- representative data space point on axis
which bins are situatedpublic int getBinIndex(double dvalue)
dvalue
- valid axis value in data spacepublic double[] getBinLimits(int index)
index
- bin indexCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.