ec.util
Interface RandomChoiceChooser

All Known Implementing Classes:
BestSelection, BreedingPipeline, BreedingSource, BucketTournamentSelection, BufferedBreedingPipeline, CrossoverPipeline, DoubleTournamentSelection, ESSelection, FirstSelection, FitProportionateSelection, ForceBreedingPipeline, GenerationSwitchPipeline, GPBreedingPipeline, GreedyOverselection, InternalCrossoverPipeline, LexicographicTournamentSelection, MultiBreedingPipeline, MultiSelection, MutateAllNodesPipeline, MutateDemotePipeline, MutateERCPipeline, MutateOneNodePipeline, MutatePromotePipeline, MutateSwapPipeline, MutationPipeline, ProportionalTournamentSelection, RandomSelection, RatioBucketTournamentSelection, RehangPipeline, ReproductionPipeline, RuleCrossoverPipeline, RuleMutationPipeline, SelectionMethod, SpatialTournamentSelection, SPEA2TournamentSelection, TournamentSelection, VectorCrossoverPipeline, VectorMutationPipeline

public interface RandomChoiceChooser

Used by RandomChoice to pick objects by probability from a distribution.

Version:
1.0
Author:
Sean Luke

Method Summary
 float getProbability(java.lang.Object obj)
          Returns obj's probability
 void setProbability(java.lang.Object obj, float prob)
          Sets obj's probability
 

Method Detail

getProbability

float getProbability(java.lang.Object obj)
Returns obj's probability


setProbability

void setProbability(java.lang.Object obj,
                    float prob)
Sets obj's probability