question: 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 ; } }
target:  ThresholdStringToArray - parse a threshold option string to an array of L thresholds (one for each label variable).