public class DoubleListParameter extends ListParameter<DoubleListParameter,double[]>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLITconstraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description |
|---|
DoubleListParameter(OptionID optionID)
Constructs a list parameter with the given optionID.
|
DoubleListParameter(OptionID optionID,
boolean optional)
Constructs a list parameter with the given optionID and optional flag.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultValueAsString()
Get the default value as string.
|
java.lang.String |
getSyntax()
Returns a string representation of the parameter's type.
|
java.lang.String |
getValueAsString()
Get the value as string.
|
protected double[] |
parseValue(java.lang.Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
addConstraint, describeValues, getConstraints, getDefaultValue, getOptionID, getShortDescription, getValue, hasDefaultValue, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, validatepublic DoubleListParameter(OptionID optionID, boolean optional)
optionID - Option IDoptional - Optional flagpublic DoubleListParameter(OptionID optionID)
optionID - Option IDpublic java.lang.String getValueAsString()
ParameternullgetValueAsString in interface Parameter<double[]>getValueAsString in class AbstractParameter<DoubleListParameter,double[]>public java.lang.String getDefaultValueAsString()
ParametergetDefaultValueAsString in interface Parameter<double[]>getDefaultValueAsString in class AbstractParameter<DoubleListParameter,double[]>protected double[] parseValue(java.lang.Object obj)
throws ParameterException
AbstractParameterparseValue in class AbstractParameter<DoubleListParameter,double[]>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.public int size()
ListParametersize in class ListParameter<DoubleListParameter,double[]>public java.lang.String getSyntax()
getSyntax in interface Parameter<double[]>getSyntax in class AbstractParameter<DoubleListParameter,double[]>Copyright © 2019 ELKI Development Team. License information.