JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class SelectByProbability

java.lang.Object
  extended bygov.nasa.javaGenes.evolvableDoubleList.Selector
      extended bygov.nasa.javaGenes.evolvableDoubleList.SelectByProbability
All Implemented Interfaces:
java.io.Serializable

public class SelectByProbability
extends Selector

See Also:
Serialized Form

Field Summary
 int DEFAULT_MAXIMUM_TRIES
           
protected  int minimumNumberToSelect
           
protected  double probability
           
 
Fields inherited from class gov.nasa.javaGenes.evolvableDoubleList.Selector
MAXIMUM_TRIES
 
Constructor Summary
SelectByProbability(double probability, int minimumNumberToSelect)
           
 
Method Summary
 Indices getIndices(int size)
           
 Indices getIndices(int size, int maxTries)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.evolvableDoubleList.Selector
getIndicesArray, getIndicesArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

probability

protected double probability

minimumNumberToSelect

protected int minimumNumberToSelect

DEFAULT_MAXIMUM_TRIES

public final int DEFAULT_MAXIMUM_TRIES
See Also:
Constant Field Values
Constructor Detail

SelectByProbability

public SelectByProbability(double probability,
                           int minimumNumberToSelect)
Method Detail

getIndices

public Indices getIndices(int size)
Specified by:
getIndices in class Selector

getIndices

public Indices getIndices(int size,
                          int maxTries)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus