Package org.knowm.xchart.internal
Class Utils
- java.lang.Object
-
- org.knowm.xchart.internal.Utils
-
public class Utils extends Object
- Author:
- timmolter
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]getDoubleArrayFromDateList(List<?> data)static double[]getDoubleArrayFromFloatArray(float[] data)static double[]getDoubleArrayFromIntArray(int[] data)static double[]getDoubleArrayFromNumberList(List<?> data)static double[]getGeneratedDataAsArray(int length)static List<Double>getGeneratedDataAsList(int length)static List<Double>getNumberListFromDoubleArray(double[] data)static List<Double>getNumberListFromIntArray(int[] data)static doublegetTickStartOffset(double workingSpace, double tickSpace)Gets the offset for the beginning of the tick marksstatic doublepow(double base, int exponent)
-
-
-
Method Detail
-
getTickStartOffset
public static double getTickStartOffset(double workingSpace, double tickSpace)Gets the offset for the beginning of the tick marks- Parameters:
workingSpace-tickSpace-- Returns:
-
pow
public static double pow(double base, int exponent)
-
getNumberListFromDoubleArray
public static List<Double> getNumberListFromDoubleArray(double[] data)
-
getDoubleArrayFromFloatArray
public static double[] getDoubleArrayFromFloatArray(float[] data)
-
getDoubleArrayFromIntArray
public static double[] getDoubleArrayFromIntArray(int[] data)
-
getDoubleArrayFromNumberList
public static double[] getDoubleArrayFromNumberList(List<?> data)
-
getDoubleArrayFromDateList
public static double[] getDoubleArrayFromDateList(List<?> data)
-
getGeneratedDataAsArray
public static double[] getGeneratedDataAsArray(int length)
-
-