org.encog.normalize.segregate
Class IntegerBalanceSegregator
java.lang.Object
org.encog.normalize.segregate.IntegerBalanceSegregator
- All Implemented Interfaces:
- Segregator
public class IntegerBalanceSegregator
- extends java.lang.Object
- implements Segregator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerBalanceSegregator
public IntegerBalanceSegregator(InputField target,
int count)
IntegerBalanceSegregator
public IntegerBalanceSegregator()
dumpCounts
public java.lang.String dumpCounts()
- Returns:
- A string that contains the counts for each group.
getCount
public int getCount()
getNormalization
public DataNormalization getNormalization()
- Specified by:
getNormalization in interface Segregator
- Returns:
- The normalization object that is being used with this segregator.
getRunningCounts
public java.util.Map<java.lang.Integer,java.lang.Integer> getRunningCounts()
getTarget
public InputField getTarget()
init
public void init(DataNormalization normalization)
- Init the segregator with the owning normalization object.
- Specified by:
init in interface Segregator
- Parameters:
normalization - The data normalization object to use.
passInit
public void passInit()
- Init for a new pass.
- Specified by:
passInit in interface Segregator
shouldInclude
public boolean shouldInclude()
- Determine of the current row should be included.
- Specified by:
shouldInclude in interface Segregator
- Returns:
- True if the current row should be included.