public interface Distribution
DistributionGenerator
to define the in- and out-degree distributions and by
CommunityGenerator
to define the community size distribution.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.
|
Distribution initialize(int invocations, int expectedTotal)
int nextValue(Random random)
random
- random generator to use for randomnessint nextConditionalValue(Random random, int otherValue)
random
- random generator to use for randomnessotherValue
- The prior valueCopyright © 2013–2020 Apache Software Foundation. All rights reserved.