|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.achartengine.util.MathHelper
public class MathHelper
Utility class for math operations.
| Field Summary | |
|---|---|
static double |
NULL_VALUE
A value that is used a null value. |
| Method Summary | |
|---|---|
static float[] |
getFloats(java.util.List<java.lang.Float> values)
Transforms a list of Float values into an array of float. |
static java.util.List<java.lang.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(java.util.List<java.lang.Double> values)
Calculate the minimum and maximum values out of a list of doubles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double NULL_VALUE
| Method Detail |
|---|
public static double[] minmax(java.util.List<java.lang.Double> values)
values - the input values
public static java.util.List<java.lang.Double> getLabels(double start,
double end,
int approxNumLabels)
start - start valueend - final valueapproxNumLabels - desired number of labels
public static float[] getFloats(java.util.List<java.lang.Float> values)
values - the list of Float
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||