Class SamplerBase
- java.lang.Object
-
- org.apache.commons.rng.sampling.distribution.SamplerBase
-
- Direct Known Subclasses:
AhrensDieterExponentialSampler
,AhrensDieterMarsagliaTsangGammaSampler
,BoxMullerGaussianSampler
,BoxMullerLogNormalSampler
,ChengBetaSampler
,ContinuousUniformSampler
,DiscreteUniformSampler
,InverseTransformContinuousSampler
,InverseTransformDiscreteSampler
,InverseTransformParetoSampler
,PoissonSampler
,RejectionInversionZipfSampler
@Deprecated public class SamplerBase extends Object
Deprecated.Since version 1.1. Class intended for internal use only.Base class for a sampler.- Since:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SamplerBase(UniformRandomProvider rng)
Deprecated.Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected double
nextDouble()
Deprecated.Return the nextdouble
value.protected int
nextInt()
Deprecated.Return the nextint
value.protected int
nextInt(int max)
Deprecated.Return the nextint
value.protected long
nextLong()
Deprecated.Return the nextlong
value.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
SamplerBase
protected SamplerBase(UniformRandomProvider rng)
Deprecated.Create an instance.- Parameters:
rng
- Generator of uniformly distributed random numbers.
-
-
Method Detail
-
nextDouble
protected double nextDouble()
Deprecated.Return the nextdouble
value.- Returns:
- a random value from a uniform distribution in the
interval
[0, 1)
.
-
nextInt
protected int nextInt()
Deprecated.Return the nextint
value.- Returns:
- a random
int
value.
-
nextInt
protected int nextInt(int max)
Deprecated.Return the nextint
value.- Parameters:
max
- Upper bound (excluded).- Returns:
- a random
int
value in the interval[0, max)
.
-
nextLong
protected long nextLong()
Deprecated.Return the nextlong
value.- Returns:
- a random
long
value.
-
-