|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.util.normalize.input.BasicInputField
public class BasicInputField
Provides basic functionality, such as min/max and current value for other input fields.
Constructor Summary | |
---|---|
BasicInputField()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicInputField()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |