Here you can find the source of intToDoubleArray(int[] labels)
public static double[] intToDoubleArray(int[] labels)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] intToDoubleArray(int[] labels) { double[] targets = new double[labels.length]; for (int i = 0; i < labels.length; i++) { targets[i] = labels[i];/* w ww . j a va2s .c o m*/ } return targets; } }