org.encog.util.normalize.output.mapped
Class MappedRange

java.lang.Object
  extended by org.encog.util.normalize.output.mapped.MappedRange
All Implemented Interfaces:
Serializable

public class MappedRange
extends Object
implements Serializable

Simple class that is used internally to hold a range mapping.

See Also:
Serialized Form

Constructor Summary
MappedRange(double low, double high, double value)
          Construct the range mapping.
 
Method Summary
 double getHigh()
           
 double getLow()
           
 double getValue()
           
 boolean inRange(double d)
          Determine if the specified value is in the range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedRange

public MappedRange(double low,
                   double high,
                   double value)
Construct the range mapping.

Parameters:
low - The low value for the range.
high - The high value for the range.
value - The value that this range represents.
Method Detail

getHigh

public double getHigh()
Returns:
The high value for this range.

getLow

public double getLow()
Returns:
The low value for this range.

getValue

public double getValue()
Returns:
The value that this range represents.

inRange

public boolean inRange(double d)
Determine if the specified value is in the range.

Parameters:
d - The value to check.
Returns:
True if this value is within the range.


Copyright © 2014. All Rights Reserved.