org.encog.util.normalize.output.mapped
public class OutputFieldEncode extends BasicOutputField
Constructor and Description |
---|
OutputFieldEncode(InputField sourceField)
Construct an encoded field.
|
Modifier and Type | Method and Description |
---|---|
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.
|
isIdeal, setIdeal
public OutputFieldEncode(InputField sourceField)
sourceField
- The field that this is based on.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.Copyright © 2014. All Rights Reserved.