静态 Public 成员函数 | |
| static double[] | minmax (List< Double > values) |
| static List< Double > | getLabels (final double start, final double end, final int approxNumLabels) |
| static float[] | getFloats (List< Float > values) |
| static double[] | getDoubles (List< Double > values) |
| static int[] | getInts (List< Integer > values) |
静态 Public 属性 | |
| static final double | NULL_VALUE = Double.MAX_VALUE |
Private 成员函数 | |
| MathHelper () | |
静态 Private 成员函数 | |
| static double[] | computeLabels (final double start, final double end, final int approxNumLabels) |
| static double | roundUp (final double val) |
静态 Private 属性 | |
| static final NumberFormat | FORMAT = NumberFormat.getNumberInstance() |
Utility class for math operations.
|
inlineprivate |
Instantiates a new math helper.
|
inlinestaticprivate |
Computes a reasonable number of labels for a data range.
| start | start value |
| end | final value |
| approxNumLabels | desired number of labels |
|
inlinestatic |
Transforms a list of Double values into an array of double.
| values | the list of Double |
|
inlinestatic |
Transforms a list of Float values into an array of float.
| values | the list of Float |
|
inlinestatic |
Gets the ints.
| values | the values |
|
inlinestatic |
Computes a reasonable set of labels for a data interval and number of labels.
| start | start value |
| end | final value |
| approxNumLabels | desired number of labels |
|
inlinestatic |
Calculate the minimum and maximum values out of a list of doubles.
| values | the input values |
|
inlinestaticprivate |
Given a number, round up to the nearest power of ten times 1, 2, or 5. The argument must be strictly positive.
| val | the val |
|
staticprivate |
A number formatter to be used to make sure we have a maximum number of fraction digits in the labels.
|
static |
A value that is used a null value.
1.8.8