private Double[] getDataVec(List<DataRow> rows, Attribute param) { Double[] vect = new Double[rows.size()]; int n = 0; for (DataRow row : rows) { vect[n] = param.getDoubleAttribute(row); n++; } return vect; }