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