|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.util.normalize.output.BasicOutputField
org.encog.util.normalize.output.mapped.OutputFieldEncode
public class OutputFieldEncode
An encoded output field. This allows ranges of output values to be mapped to specific values.
Constructor Summary | |
---|---|
OutputFieldEncode(InputField sourceField)
Construct an encoded field. |
Method Summary | |
---|---|
void |
addRange(double low,
double high,
double value)
Add a ranged mapped to a value. |
double |
calculate(int subfield)
Calculate the value for this field. |
double |
getCatchAll()
|
InputField |
getSourceField()
|
int |
getSubfieldCount()
|
void |
rowInit()
Not needed for this sort of output field. |
void |
setCatchAll(double catchAll)
Set the catch all value. |
Methods inherited from class org.encog.util.normalize.output.BasicOutputField |
---|
isIdeal, setIdeal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputFieldEncode(InputField sourceField)
sourceField
- The field that this is based on.Method Detail |
---|
public void addRange(double low, double high, double value)
low
- The low value for the range.high
- The high value for the range.value
- The value that the field should produce for this range.public double calculate(int subfield)
subfield
- Not used.
public double getCatchAll()
public InputField getSourceField()
public int getSubfieldCount()
public void rowInit()
public void setCatchAll(double catchAll)
catchAll
- The catch all value that is to be returned if none
of the ranges match.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |