org.encog.util.normalize.segregate
public class IntegerBalanceSegregator extends Object implements Segregator
Constructor and Description |
---|
IntegerBalanceSegregator()
Default constructor.
|
IntegerBalanceSegregator(InputField target,
int count)
Construct an integer balance segregator.
|
Modifier and Type | Method and Description |
---|---|
String |
dumpCounts() |
int |
getCount() |
DataNormalization |
getNormalization() |
Map<Integer,Integer> |
getRunningCounts() |
InputField |
getTarget() |
void |
init(DataNormalization normalization)
Init the segregator with the owning normalization object.
|
void |
passInit()
Init for a new pass.
|
boolean |
shouldInclude()
Determine of the current row should be included.
|
public IntegerBalanceSegregator(InputField target, int count)
target
- The input field to use.count
- The number of each unique integer to allow.public IntegerBalanceSegregator()
public String dumpCounts()
public int getCount()
public DataNormalization getNormalization()
getNormalization
in interface Segregator
public Map<Integer,Integer> getRunningCounts()
public InputField getTarget()
public void init(DataNormalization normalization)
init
in interface Segregator
normalization
- The data normalization object to use.public void passInit()
passInit
in interface Segregator
public boolean shouldInclude()
shouldInclude
in interface Segregator
Copyright © 2014. All Rights Reserved.