List of utility methods to do Integer Array to Double
double[] | arrayIntToArrayDouble(final int[] array) converts an array of int in an array of double. if (array == null) return null; final double[] result = new double[array.length]; final int n = array.length; for (int i = 0; i < n; i++) { result[i] = array[i]; return result; ... |
double[] | intArrayToDouble(int[] input) int Array To Double double[] output = new double[input.length]; for (int i = 0; i < input.length; i++) { output[i] = input[i]; return output; |
double[] | intArrayToDoubleArray(int[] ints) int Array To Double Array double[] ret = new double[ints.length / 2]; for (int i = 0; i < ints.length; i += 2) { long l = ((long) ints[i]) << 32 | ints[i + 1]; ret[i / 2] = Double.longBitsToDouble(l); return ret; |