Package ec.util

# Interface RandomChoiceChooserD

All Known Implementing Classes:
  `AnnealedSelection`, `BestSelection`, `BoltzmannSelection`, `BreedingPipeline`, `BreedingSource`, `BucketTournamentSelection`, `BufferedBreedingPipeline`, `CheckingPipeline`, `CrossoverPipeline`, `DoubleTournamentSelection`, `ESSelection`, `FirstCopyPipeline`, `FirstSelection`, `FitProportionateSelection`, `ForceBreedingPipeline`, `GeneDuplicationPipeline`, `GenerationSwitchPipeline`, `GPBreedingPipeline`, `GreedyOverselection`, `InitializationPipeline`, `InternalCrossoverPipeline`, `LexicaseSelection`, `LexicographicTournamentSelection`, `ListCrossoverPipeline`, `MultiBreedingPipeline`, `MultipleVectorCrossoverPipeline`, `MultiSelection`, `MutateAllNodesPipeline`, `MutateDemotePipeline`, `MutateERCPipeline`, `MutateOneNodePipeline`, `MutatePromotePipeline`, `MutateSwapPipeline`, `MutationPipeline`, `ProportionalTournamentSelection`, `RandomSelection`, `RatioBucketTournamentSelection`, `RehangPipeline`, `RepeatPipeline`, `ReproductionPipeline`, `RuleCrossoverPipeline`, `RuleMutationPipeline`, `SelectionMethod`, `SigmaScalingSelection`, `SizeFairCrossoverPipeline`, `SpatialTournamentSelection`, `StubPipeline`, `SUSSelection`, `TopSelection`, `TournamentSelection`, `UniquePipeline`, `VectorCrossoverPipeline`, `VectorMutationPipeline`

public interface RandomChoiceChooserD
Used by RandomChoice to pick objects by probability from a distribution.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `getProbability(Object obj)`
  Returns obj's probability
  `void`
  `setProbability(Object obj, double prob)`
  Sets obj's probability

- ## Method Details

  - ### getProbability

    double getProbability(Object obj)
    Returns obj's probability

  - ### setProbability

    void setProbability(Object obj, double prob)
    Sets obj's probability