org.encog.util.normalize.input
public class BasicInputField extends Object implements InputField
Constructor and Description |
---|
BasicInputField() |
Modifier and Type | Method and Description |
---|---|
void |
applyMinMax(double d)
Given the current value, apply to the min and max values.
|
double |
getCurrentValue() |
double |
getMax() |
double |
getMin() |
boolean |
getUsedForNetworkInput() |
double |
getValue(int i)
Not supported for this sort of class, may be implemented in subclasses.
|
void |
setCurrentValue(double currentValue)
Set the current value of this field.
|
void |
setMax(double max)
Set the current max value.
|
void |
setMin(double min)
Set the current min value.
|
void |
setUsedForNetworkInput(boolean usedForNetworkInput)
This is needed so that the buildForNetworkInput method of the
normalization class knows how many input fields to expect.
|
public void applyMinMax(double d)
applyMinMax
in interface InputField
d
- THe current value.public double getCurrentValue()
getCurrentValue
in interface InputField
public double getMax()
getMax
in interface InputField
public double getMin()
getMin
in interface InputField
public boolean getUsedForNetworkInput()
getUsedForNetworkInput
in interface InputField
public double getValue(int i)
getValue
in interface InputField
i
- The index. Not used.public void setCurrentValue(double currentValue)
setCurrentValue
in interface InputField
currentValue
- The current value of this field.public void setMax(double max)
setMax
in interface InputField
max
- The maximum value encountered on this field so far.public void setMin(double min)
setMin
in interface InputField
min
- The minimum value encountered on this field so far.public void setUsedForNetworkInput(boolean usedForNetworkInput)
usedForNetworkInput
- True, if this field is used for network input.Copyright © 2014. All Rights Reserved.