public class NormalDistribution extends Object implements Distribution
| Constructor and Description | 
|---|
NormalDistribution(double stdDeviation)
Constructs a NormalDistribution with the given standard deviation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Distribution | 
initialize(int invocations,
          int expectedTotal)
Initializes the distribution such that expectedTotal is equal to the expected sum of generated values
 after the given number of invocatiosn. 
 | 
int | 
nextConditionalValue(Random random,
                    int otherValue)
Returns the next value conditional on another given value. 
 | 
int | 
nextValue(Random random)
Returns the next value. 
 | 
String | 
toString()  | 
public NormalDistribution(double stdDeviation)
stdDeviation - Simple deviation of the distribution. Must be non-negative.public Distribution initialize(int invocations, int expectedTotal)
Distributioninitialize in interface Distributionpublic int nextValue(Random random)
DistributionnextValue in interface Distributionrandom - random generator to use for randomnesspublic int nextConditionalValue(Random random, int otherValue)
DistributionnextConditionalValue in interface Distributionrandom - random generator to use for randomnessotherValue - The prior valueCopyright © 2013–2021 Apache Software Foundation. All rights reserved.