public static double[] thresholdStringToArray(String top,int L){
  if (top.startsWith("[")) {
    return MLUtils.toDoubleArray(top);
  }
 else {
    double t[]=new double[L];
    Arrays.fill(t,Double.parseDouble(top));
    return t;
  }
}

public static double [ ] thresholdStringToArray ( String top , int L ) { if ( top . startsWith ( "[" ) ) { return MLUtils . toDoubleArray ( top ) ; } else { double t [ ] = new double [ L ] ; Arrays . fill ( t , Double . parseDouble ( top ) ) ; return t ; } }
thresholdstringtoarray - parse a threshold option string to an array of l thresholds ( one for each label variable ) .
