public class FixedAxis extends Object implements IAxis
serialVersionUID
Constructor and Description |
---|
FixedAxis(int bins,
double min,
double max)
Create an Axis
|
Modifier and Type | Method and Description |
---|---|
double |
binCentre(int index)
Centre of the bin specified.
|
double |
binLowerEdge(int index)
Lower edge of the specified bin.
|
int |
bins()
The number of bins (excluding underflow and overflow) on the axis.
|
double |
binUpperEdge(int index)
Upper edge of the specified bin.
|
double |
binWidth(int index)
Width of the bin specified.
|
int |
coordToIndex(double coord)
Converts a coordinate on the axis to a bin number.
|
double |
lowerEdge()
Lower axis edge.
|
double |
upperEdge()
Upper axis edge.
|
public FixedAxis(int bins, double min, double max)
bins
- Number of binsmin
- Minimum for axismax
- Maximum for axispublic double binCentre(int index)
IAxis
public double binLowerEdge(int index)
IAxis
binLowerEdge
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public int bins()
IAxis
public double binUpperEdge(int index)
IAxis
binUpperEdge
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public double binWidth(int index)
IAxis
public int coordToIndex(double coord)
IAxis
coordToIndex
in interface IAxis
public double lowerEdge()
IAxis
Jas4pp 1.5 © Java Analysis Studio for Particle Physics