|
||||||||||
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.OutputFieldRangeMapped
public class OutputFieldRangeMapped
A ranged mapped output field. This will scale the input so that it is between the high and low value.
Constructor Summary | |
---|---|
OutputFieldRangeMapped()
Default constructor, used mainly for reflection. |
|
OutputFieldRangeMapped(InputField f)
Create a range field with -1 and 1 as low/high. |
|
OutputFieldRangeMapped(InputField field,
double low,
double high)
Construct a range mapped output field. |
Method Summary | |
---|---|
static double |
calculate(double value,
double min,
double max,
double hi,
double lo)
Calculate a ranged mapped value. |
double |
calculate(int subfield)
Calculate this output field. |
double |
convertBack(double data)
Convert a number back after its been normalized. |
InputField |
getField()
|
double |
getHigh()
|
double |
getLow()
|
int |
getSubfieldCount()
|
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 OutputFieldRangeMapped()
public OutputFieldRangeMapped(InputField field, double low, double high)
field
- The input field to base this on.low
- The low value.high
- The high value.public OutputFieldRangeMapped(InputField f)
f
- The input field to use.Method Detail |
---|
public static double calculate(double value, double min, double max, double hi, double lo)
value
- The to map.min
- The minimum that the value param can be.max
- The maximum that the value param can be.hi
- The high value to map into.lo
- The low value to map into.
public double calculate(int subfield)
calculate
in interface OutputField
subfield
- Not used.
public InputField getField()
public double getHigh()
public double getLow()
public int getSubfieldCount()
getSubfieldCount
in interface OutputField
public void rowInit()
rowInit
in interface OutputField
public double convertBack(double data)
data
- The number to convert back.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |