public class MathHelper extends Object
Modifier and Type | Field and Description |
---|---|
static double |
NULL_VALUE
A value that is used a null value.
|
Modifier and Type | Method and Description |
---|---|
static List<Double> |
getLabels(double start,
double end,
int approxNumLabels)
Computes a reasonable set of labels for a data interval and number of
labels.
|
static double[] |
minmax(List<Double> values)
Calculate the minimum and maximum values out of a list of doubles.
|
public static final double NULL_VALUE
public static double[] minmax(List<Double> values)
values
- the input valuespublic static List<Double> getLabels(double start, double end, int approxNumLabels)
start
- start valueend
- final valueapproxNumLabels
- desired number of labels