|
||||||||||
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.OutputOneOf
public class OutputOneOf
An output field that uses the "on of" technique to represent input data. For example, if there were five nominal items, or classes, given then each one would be represented by a single output neuron that would be on or off. Often the OutputEquilateral class is a better choice to represent nominal items.
Constructor Summary | |
---|---|
OutputOneOf()
Default constructor for reflection. |
|
OutputOneOf(double trueValue,
double falseValue)
Construct a one-of field and specify the true and false value. |
|
OutputOneOf(InputFieldCSVText csv,
double trueValue,
double falseValue)
Base the field on a csv text field. |
Method Summary | |
---|---|
void |
addItem(InputField inputField,
double value)
Add a nominal value specifying a single value, the high and low values will be 0.5 below and 0.5 above. |
void |
addItem(InputField inputField,
double low,
double high)
Add a nominal item, specify the low and high values. |
double |
calculate(int subfield)
Calculate the value for the specified subfield. |
double |
getFalseValue()
|
int |
getSubfieldCount()
|
double |
getTrueValue()
|
void |
rowInit()
Not needed for this sort of output field. |
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 OutputOneOf()
public OutputOneOf(double trueValue, double falseValue)
trueValue
- The true value.falseValue
- The false value.public OutputOneOf(InputFieldCSVText csv, double trueValue, double falseValue)
csv
- The field.trueValue
- The true value.falseValue
- The false value.Method Detail |
---|
public void addItem(InputField inputField, double value)
inputField
- The input field to use.value
- The value to calculate the high and low values off of.public void addItem(InputField inputField, double low, double high)
inputField
- The input field to base everything from.low
- The high value for this nominal item.high
- The low value for this nominal item.public double calculate(int subfield)
subfield
- The subfield to calculate for.
public double getFalseValue()
public int getSubfieldCount()
public double getTrueValue()
public void rowInit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |