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 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.Copyright © 2014. All Rights Reserved.