|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.util.normalize.segregate.RangeSegregator
public class RangeSegregator
Range segregators are used to segregate data and include or exclude if it is within a certain range.
Constructor Summary | |
---|---|
RangeSegregator()
Default constructor for reflection. |
|
RangeSegregator(InputField sourceField,
boolean include)
Construct a range segregator. |
Method Summary | |
---|---|
void |
addRange(double low,
double high,
boolean include)
Add a range. |
void |
addRange(SegregationRange range)
Add a range. |
DataNormalization |
getNormalization()
|
InputField |
getSourceField()
|
void |
init(DataNormalization normalization)
Init the object. |
void |
passInit()
Nothing needs to be done to setup for a pass. |
boolean |
shouldInclude()
Should this row be included, according to this segregator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeSegregator()
public RangeSegregator(InputField sourceField, boolean include)
sourceField
- The source field.include
- Default action, if the data is not in any of the ranges,
should it be included.Method Detail |
---|
public void addRange(double low, double high, boolean include)
low
- The low end of the range.high
- The high end of the range.include
- Should this range be included.public void addRange(SegregationRange range)
range
- The range to add.public DataNormalization getNormalization()
getNormalization
in interface Segregator
public InputField getSourceField()
public void init(DataNormalization normalization)
init
in interface Segregator
normalization
- The normalization object that owns this range.public boolean shouldInclude()
Segregator
shouldInclude
in interface Segregator
public void passInit()
passInit
in interface Segregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |