JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class SelectFixedNumber

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

public class SelectFixedNumber
extends Selector

selects a fixed number of indices, or all of them if there aren't enough

See Also:
Serialized Form

Field Summary
protected  int numberToSelect
           
 
Fields inherited from class gov.nasa.javaGenes.evolvableDoubleList.Selector
MAXIMUM_TRIES
 
Constructor Summary
SelectFixedNumber(int numberToSelect)
           
 
Method Summary
 Indices getIndices(int size)
           
 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

numberToSelect

protected int numberToSelect
Constructor Detail

SelectFixedNumber

public SelectFixedNumber(int numberToSelect)
Method Detail

getIndices

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

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus