Class Utils


  • public class Utils
    extends Object
    Author:
    timmolter
    • 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)
      • getNumberListFromIntArray

        public static List<Double> getNumberListFromIntArray​(int[] data)
      • getGeneratedDataAsList

        public static List<Double> getGeneratedDataAsList​(int length)
      • 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)