org.encog.util.normalize.segregate
public class RangeSegregator extends Object implements Segregator
| Constructor and Description |
|---|
RangeSegregator()
Default constructor for reflection.
|
RangeSegregator(InputField sourceField,
boolean include)
Construct a range segregator.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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 Segregatorpublic InputField getSourceField()
public void init(DataNormalization normalization)
init in interface Segregatornormalization - The normalization object that owns this range.public boolean shouldInclude()
SegregatorshouldInclude in interface Segregatorpublic void passInit()
passInit in interface SegregatorCopyright © 2014. All Rights Reserved.