org.encog.util.normalize.segregate
Class SegregationRange
- java.lang.Object
-
- org.encog.util.normalize.segregate.SegregationRange
-
- All Implemented Interfaces:
- java.io.Serializable
public class SegregationRange extends java.lang.Object implements java.io.SerializableSpecifies a range that might be included or excluded.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SegregationRange()Default constructor for reflection.SegregationRange(double low, double high, boolean include)Construct a segregation range.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetHigh()doublegetLow()booleaninRange(double value)Is this value within the range.booleanisIncluded()
-
-
-
Constructor Detail
-
SegregationRange
public SegregationRange()
Default constructor for reflection.
-
SegregationRange
public SegregationRange(double low, double high, boolean include)Construct a segregation range.- Parameters:
low- The low end of the range.high- The high end of the range.include- Specifies if the range should be included.
-
-
Method Detail
-
getHigh
public double getHigh()
- Returns:
- The high end of the range.
-
getLow
public double getLow()
- Returns:
- The low end of the range.
-
inRange
public boolean inRange(double value)
Is this value within the range.- Parameters:
value- The value to check.- Returns:
- True if the value is within the range.
-
isIncluded
public boolean isIncluded()
- Returns:
- True if this range should be included.
-
-
DMelt 3.0 © DataMelt by jWork.ORG