
public class DoubleParameter extends NumberParameter<Double>
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description | 
|---|
DoubleParameter(OptionID optionID)
Constructs a double parameter with the given optionID. 
 | 
DoubleParameter(OptionID optionID,
               boolean optional)
Deprecated. 
 
Use  
AbstractParameter.setOptional(boolean) instead. | 
DoubleParameter(OptionID optionID,
               double defaultValue)
Constructs a double parameter with the given optionID and default value. 
 | 
DoubleParameter(OptionID optionID,
               double defaultValue,
               ParameterConstraint<Number> constraint)
 | 
DoubleParameter(OptionID optionID,
               ParameterConstraint<Number> constraint)
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
doubleValue()
Get the parameter value as double. 
 | 
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. 
 | 
addConstraint, addConstraints, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate@Deprecated public DoubleParameter(OptionID optionID, double defaultValue, ParameterConstraint<Number> constraint)
AbstractParameter.addConstraint(de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.ParameterConstraint<? super T>) instead.optionID - the unique id of this parameterdefaultValue - the default value for this parameterconstraint - the constraint of this parameter@Deprecated public DoubleParameter(OptionID optionID, ParameterConstraint<Number> constraint)
AbstractParameter.addConstraint(de.lmu.ifi.dbs.elki.utilities.optionhandling.constraints.ParameterConstraint<? super T>) instead.optionID - the unique id of this parameterconstraint - the constraint of this parameterpublic DoubleParameter(OptionID optionID, double defaultValue)
optionID - the unique optionIDdefaultValue - the default value for this double parameter@Deprecated public DoubleParameter(OptionID optionID, boolean optional)
AbstractParameter.setOptional(boolean) instead.optionID - the unique optionIDoptional - Flag to indicate that the parameter is optionalpublic DoubleParameter(OptionID optionID)
optionID - the unique id of this parameterpublic String getValueAsString()
ParameternullgetValueAsString in interface Parameter<Double>getValueAsString in class AbstractParameter<Double>protected Double parseValue(Object obj) throws WrongParameterValueException
AbstractParameterparseValue in class AbstractParameter<Double>obj - Object to parse (may be a string representation!)WrongParameterValueExceptionpublic String getSyntax()
public double doubleValue()