OptaPlanner core 6.2.0.Final-redhat-4
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.selector.common.nearby.ParabolicDistributionNearbyRandom
-
- All Implemented Interfaces:
- NearbyRandom
public class ParabolicDistributionNearbyRandom
extends Object
implements NearbyRandom
P(x) = 3(m - x)²/m³
Cumulative probability F(x) = 1 - (1 - x/m)³
Inverse cumulative probability F(p) = m(1 - (1 - p)^(1/3))
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
protected int |
sizeMaximum |
-
Method Summary
Methods
Modifier and Type |
Method and Description |
int |
nextInt(Random random,
int n) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
OptaPlanner core 6.2.0.Final-redhat-4
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.