org.encog.util.normalize.output
public class OutputFieldRangeMapped extends BasicOutputField implements RequireTwoPass
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
isIdeal, setIdealpublic 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.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 OutputFieldsubfield - Not used.public InputField getField()
public double getHigh()
public double getLow()
public int getSubfieldCount()
getSubfieldCount in interface OutputFieldpublic void rowInit()
rowInit in interface OutputFieldpublic double convertBack(double data)
data - The number to convert back.Copyright © 2014. All Rights Reserved.