OptaPlanner core 6.2.0.Final-redhat-9
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.selector.common.nearby.LinearDistributionNearbyRandom
-
- All Implemented Interfaces:
- NearbyRandom
public class LinearDistributionNearbyRandom
extends Object
implements NearbyRandom
P(x) = 2/m - 2x/m²
Cumulative probability F(x) = x(2m - x)/m²
Inverse cumulative probability F(p) = m(1 - (1 - p)^(1/2))
-
-
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-9
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.