|
||||||||||
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.nominal.OutputEquilateral
public class OutputEquilateral
Allows nominal items to be encoded using the equilateral method. This maps the nominal items into an array of input or output values minus 1. This can sometimes provide a more accurate representation than the "one of" method. Based on: Guiver and Klimasauskas (1991).
Constructor Summary | |
---|---|
OutputEquilateral()
Prodvide a default constructor for reflection. |
|
OutputEquilateral(double low,
double high)
Create an equilateral output field with the specified high and low output values. |
Method Summary | |
---|---|
void |
addItem(InputField inputField,
double value)
Add a nominal value based on a single value. |
void |
addItem(InputField inputField,
double low,
double high)
Add a nominal item based on a range. |
double |
calculate(int subfield)
Calculate the value for the specified subfield. |
Equilateral |
getEquilateral()
|
double |
getHigh()
|
double |
getLow()
|
int |
getSubfieldCount()
This is the total number of nominal items minus 1. |
void |
rowInit()
Determine which item's index is the 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 OutputEquilateral()
public OutputEquilateral(double low, double high)
high
- The high output value.low
- The low output value.Method Detail |
---|
public void addItem(InputField inputField, double value)
inputField
- The input field this is based on.value
- The value.public void addItem(InputField inputField, double low, double high)
inputField
- The input field to use.low
- The low value of the range.high
- The high value of the range.public double calculate(int subfield)
subfield
- The subfield to calculate for.
public Equilateral getEquilateral()
public double getHigh()
public double getLow()
public int getSubfieldCount()
public void rowInit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |