|
||||||||||
| 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 InputFieldd - THe current value.public double getCurrentValue()
getCurrentValue in interface InputFieldpublic double getMax()
getMax in interface InputFieldpublic double getMin()
getMin in interface InputFieldpublic boolean getUsedForNetworkInput()
getUsedForNetworkInput in interface InputFieldpublic double getValue(int i)
getValue in interface InputFieldi - The index. Not used.
public void setCurrentValue(double currentValue)
setCurrentValue in interface InputFieldcurrentValue - The current value of this field.public void setMax(double max)
setMax in interface InputFieldmax - The maximum value encountered on this field so far.public void setMin(double min)
setMin in interface InputFieldmin - 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 | |||||||||