public class BetaDistributionNearbyRandom extends Object implements NearbyRandom
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.math3.distribution.BetaDistribution |
betaDistribution |
| Constructor and Description |
|---|
BetaDistributionNearbyRandom(double betaDistributionAlpha,
double betaDistributionBeta) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOverallSizeMaximum()
Used to limit the RAM memory size of the nearby distance matrix.
|
int |
nextInt(Random random,
int nearbySize) |
protected final org.apache.commons.math3.distribution.BetaDistribution betaDistribution
public BetaDistributionNearbyRandom(double betaDistributionAlpha,
double betaDistributionBeta)
public int nextInt(Random random, int nearbySize)
nextInt in interface NearbyRandomrandom - never nullnearbySize - never negative. The number of available values to select from.
Normally this is the size of the value range for a non-chained variable
and the size of the value range (= size of the entity list) minus 1 for a chained variable.0 <= x < nearbySizepublic int getOverallSizeMaximum()
NearbyRandomgetOverallSizeMaximum in interface NearbyRandomNearbyRandom.nextInt(Random, int) can return,
Integer.MAX_VALUE if there is noneCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.