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

Method setupProbabilities

ecj/src/main/java/ec/BreedingSource.java:138–141  ·  view source on GitHub ↗

Normalizes and arranges the probabilities in sources so that they are usable by pickRandom(...). If the sources have all zero probabilities, then a uniform selection is used. Negative probabilities will generate an ArithmeticException, as will an empty source array.

(final BreedingSource[] sources)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

setupMethod · 0.95

Calls 1

organizeDistributionMethod · 0.95

Tested by

no test coverage detected