public class DoubleArrayParam extends Param<double[]>
Param[Array[Double
} for Java.Constructor and Description |
---|
DoubleArrayParam(Params parent,
String name,
String doc) |
DoubleArrayParam(Params parent,
String name,
String doc,
scala.Function1<double[],Object> isValid) |
Modifier and Type | Method and Description |
---|---|
double[] |
jsonDecode(String json)
Decodes a param value from JSON.
|
String |
jsonEncode(double[] value)
Encodes a param value into JSON, which can be decoded by
jsonDecode() . |
ParamPair<double[]> |
w(java.util.List<Double> value)
Creates a param pair with a
List of values (for Java and Python). |
public DoubleArrayParam(Params parent, String name, String doc, scala.Function1<double[],Object> isValid)
public DoubleArrayParam(Params parent, String name, String doc)
public ParamPair<double[]> w(java.util.List<Double> value)
List
of values (for Java and Python).public String jsonEncode(double[] value)
Param
jsonDecode()
.jsonEncode
in class Param<double[]>
public double[] jsonDecode(String json)
Param
jsonDecode
in class Param<double[]>