jenes.stage.operator.common
Class RankScaling<T extends Chromosome>

java.lang.Object
  extended by jenes.stage.AbstractStage<T>
      extended by jenes.stage.operator.Operator<T>
          extended by jenes.stage.operator.Scaling<T>
              extended by jenes.stage.operator.common.RankScaling<T>

public class RankScaling<T extends Chromosome>
extends Scaling<T>

Author:
troiano

Nested Class Summary
 
Nested classes/interfaces inherited from class jenes.stage.operator.Operator
Operator.Statistics
 
Field Summary
 
Fields inherited from class jenes.stage.operator.Operator
random, statistics
 
Fields inherited from class jenes.stage.AbstractStage
biggerIsBetter, ga
 
Constructor Summary
RankScaling()
           
 
Method Summary
 void preprocess(double[] scores, boolean[] legals)
           
 double scale(Individual<T> ind, int pos)
           
 
Methods inherited from class jenes.stage.operator.Scaling
process
 
Methods inherited from class jenes.stage.operator.Operator
getStatistics, updateStatistics
 
Methods inherited from class jenes.stage.AbstractStage
dispose, init, isBiggerBetter, setBiggerIsBetter, setBiggerIsBetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankScaling

public RankScaling()
Method Detail

preprocess

public void preprocess(double[] scores,
                       boolean[] legals)
Overrides:
preprocess in class Scaling<T extends Chromosome>

scale

public double scale(Individual<T> ind,
                    int pos)
Specified by:
scale in class Scaling<T extends Chromosome>