Class BetaDistributionNearbyRandom

    • Field Detail

      • betaDistribution

        protected final org.apache.commons.math3.distribution.BetaDistribution betaDistribution
    • Constructor Detail

      • BetaDistributionNearbyRandom

        public BetaDistributionNearbyRandom​(double betaDistributionAlpha,
                                            double betaDistributionBeta)
    • Method Detail

      • nextInt

        public int nextInt​(Random random,
                           int nearbySize)
        Specified by:
        nextInt in interface NearbyRandom
        Parameters:
        random - never null
        nearbySize - 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.
        Returns:
        0 <= x < nearbySize