The Encog Project

org.encog.normalize.segregate
Class IntegerBalanceSegregator

java.lang.Object
  extended by org.encog.normalize.segregate.IntegerBalanceSegregator
All Implemented Interfaces:
Segregator

public class IntegerBalanceSegregator
extends java.lang.Object
implements Segregator


Constructor Summary
IntegerBalanceSegregator()
           
IntegerBalanceSegregator(InputField target, int count)
           
 
Method Summary
 java.lang.String dumpCounts()
           
 int getCount()
           
 DataNormalization getNormalization()
           
 java.util.Map<java.lang.Integer,java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerBalanceSegregator

public IntegerBalanceSegregator(InputField target,
                                int count)

IntegerBalanceSegregator

public IntegerBalanceSegregator()
Method Detail

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.

The Encog Project