AhrensDieterExponentialSampler
, AhrensDieterMarsagliaTsangGammaSampler
, BoxMullerGaussianSampler
, BoxMullerLogNormalSampler
, ChengBetaSampler
, ContinuousUniformSampler
, DiscreteUniformSampler
, InverseTransformContinuousSampler
, InverseTransformDiscreteSampler
, InverseTransformParetoSampler
, PoissonSampler
, RejectionInversionZipfSampler
@Deprecated public class SamplerBase extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
protected |
SamplerBase(org.apache.commons.rng.UniformRandomProvider rng) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
protected double |
nextDouble() |
Deprecated.
|
protected int |
nextInt() |
Deprecated.
|
protected int |
nextInt(int max) |
Deprecated.
|
protected long |
nextLong() |
Deprecated.
|
java.lang.String |
toString() |
Deprecated.
|
protected SamplerBase(org.apache.commons.rng.UniformRandomProvider rng)
rng
- Generator of uniformly distributed random numbers.protected double nextDouble()
[0, 1)
.protected int nextInt()
int
value.protected int nextInt(int max)
max
- Upper bound (excluded).int
value in the interval [0, max)
.protected long nextLong()
long
value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.