public class DoubleListParameter extends ListParameter<DoubleListParameter,double[]>
LIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLIT
constraints, 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 |
---|---|
String |
getSyntax()
Returns a string representation of the parameter's type.
|
String |
getValueAsString()
Get the value as string.
|
protected double[] |
parseValue(Object obj)
Parse a given value into the destination type.
|
int |
size()
Size of the list.
|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate
public DoubleListParameter(OptionID optionID, boolean optional)
optionID
- Option IDoptional
- Optional flagpublic DoubleListParameter(OptionID optionID)
optionID
- Option IDpublic String getValueAsString()
Parameter
null
getValueAsString
in interface Parameter<double[]>
getValueAsString
in class AbstractParameter<DoubleListParameter,double[]>
protected double[] parseValue(Object obj) throws ParameterException
AbstractParameter
parseValue
in class AbstractParameter<DoubleListParameter,double[]>
obj
- Object to parse (may be a string representation!)ParameterException
- when the object cannot be parsed.public int size()
ListParameter
size
in class ListParameter<DoubleListParameter,double[]>
public String getSyntax()
getSyntax
in interface Parameter<double[]>
getSyntax
in class AbstractParameter<DoubleListParameter,double[]>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.