MCPcopy Create free account
hub / github.com/GMUEClab/ecj / pickFromDistribution

Method pickFromDistribution

ecj/src/main/java/ec/util/RandomChoice.java:374–378  ·  view source on GitHub ↗

Picks a random item from an array of probabilities, normalized and summed as follows: For example, if four probabilities are {0.3, 0.2, 0.1, 0.4}, then they should get normalized and summed by the outside owners as: {0.3, 0.5, 0.6, 1.0}. If probabilities.length < CH

(final float[] probabilities,
        final float prob)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

chooseFunctionSymbolMethod · 0.95
chooseTerminalSymbolMethod · 0.95
pickRandomMethod · 0.95
pickSizeMethod · 0.95
produceMethod · 0.95
produceMethod · 0.95
pickSizeMethod · 0.95

Calls 2

exemptZeroesMethod · 0.95
getProbabilityMethod · 0.65

Tested by

no test coverage detected