Here you can find the source of arrayIntToArrayDouble(final int[] array)
Parameter | Description |
---|---|
array | Array of int to convert |
public static double[] arrayIntToArrayDouble(final int[] array)
//package com.java2s; /*// w w w. j a va 2 s . c om * Nividic development code * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. If you do not have a copy, * see: * * http://www.gnu.org/copyleft/lesser.html * * Copyright for this code is held jointly by the microarray platform * of the ?cole Normale Sup?rieure and the individual authors. * These should be listed in @author doc comments. * * For more information on the Nividic project and its aims, * or to join the Nividic mailing list, visit the home page * at: * * http://www.transcriptome.ens.fr/nividic * */ public class Main { /** * converts an array of int in an array of double. * @param array Array of int to convert * @return an array of double */ public static double[] arrayIntToArrayDouble(final int[] array) { 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; } }