public class TrainingParameter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private double |
defaultValue
The default value of the parameter.
|
private double |
lowerBound
The lower bound of the parameter.
|
private java.lang.String |
name
The identifier of the parameter.
|
private double |
upperBound
The upper bound of the parameter.
|
private double |
value
The actual value of the parameter.
|
| Constructor and Description |
|---|
TrainingParameter(java.lang.String name,
double defaultValue,
double upperBound,
double lowerBound)
Creates a new training parameter with the given values and actual value
as default value.
|
TrainingParameter(java.lang.String name,
double value,
double defaultValue,
double lowerBound,
double upperBound)
Creates a new training parameter with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDefaultValue()
Returns the default value of this parameter.
|
double |
getLowerBound()
Returns the lower bound of this parameter.
|
java.lang.String |
getName()
Returns the name of this parameter.
|
double |
getUpperBound()
Returns the upper bound of this parameter.
|
double |
getValue()
Returns the actual value of this parameter.
|
TrainingParameter |
instantiate(double value)
Instantiates a new parameter with the given value.
|
TrainingParameter |
instantiateWithDefaultValue()
Instantiates a new parameter with the default value.
|
java.lang.String |
toString() |
private java.lang.String name
private double value
private double defaultValue
private double upperBound
private double lowerBound
public TrainingParameter(java.lang.String name,
double defaultValue,
double upperBound,
double lowerBound)
name - The identifier of the parameter.defaultValue - The default value of the parameter.upperBound - The upper bound of the parameter.lowerBound - The lower bound of the parameter.public TrainingParameter(java.lang.String name,
double value,
double defaultValue,
double lowerBound,
double upperBound)
name - The identifier of the parameter.value - The actual value of the parameter.defaultValue - The default value of the parameter.lowerBound - The lower bound of the parameter.upperBound - The upper bound of the parameter.public TrainingParameter instantiate(double value)
value - some valuepublic TrainingParameter instantiateWithDefaultValue()
public java.lang.String getName()
public double getValue()
public double getDefaultValue()
public double getLowerBound()
public double getUpperBound()
public java.lang.String toString()
toString in class java.lang.Object