public class DoubleVariableAxis extends Object implements DoubleIAxis
| Constructor and Description |
|---|
DoubleVariableAxis(double[] edges)
Constructs and returns an axis with the given bin edges.
|
| 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 DoubleVariableAxis(double[] edges)
edges - the bin boundaries the partition shall have; must be sorted
ascending and must not contain multiple identical elements.IllegalArgumentException - if edges.length < 1.public double binCentre(int index)
DoubleIAxisbinCentre in interface DoubleIAxisindex - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public double binLowerEdge(int index)
DoubleIAxisbinLowerEdge in interface DoubleIAxisindex - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public int bins()
DoubleIAxisbins in interface DoubleIAxispublic double binUpperEdge(int index)
DoubleIAxisbinUpperEdge in interface DoubleIAxisindex - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public double binWidth(int index)
DoubleIAxisbinWidth in interface DoubleIAxisindex - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public int coordToIndex(double coord)
DoubleIAxiscoordToIndex in interface DoubleIAxispublic double lowerEdge()
DoubleIAxislowerEdge in interface DoubleIAxispublic double upperEdge()
DoubleIAxisupperEdge in interface DoubleIAxisJump to the Parallel Colt Homepage