Interface ContinuousSampler
- All Known Subinterfaces:
NormalizedGaussianSampler
,SharedStateContinuousSampler
- All Known Implementing Classes:
AhrensDieterExponentialSampler
,AhrensDieterMarsagliaTsangGammaSampler
,AhrensDieterMarsagliaTsangGammaSampler.AhrensDieterGammaSampler
,AhrensDieterMarsagliaTsangGammaSampler.BaseGammaSampler
,AhrensDieterMarsagliaTsangGammaSampler.MarsagliaTsangGammaSampler
,BoxMullerGaussianSampler
,BoxMullerLogNormalSampler
,BoxMullerNormalizedGaussianSampler
,ChengBetaSampler
,ChengBetaSampler.BaseChengBetaSampler
,ChengBetaSampler.ChengBBBetaSampler
,ChengBetaSampler.ChengBCBetaSampler
,CompositeSamplers.ContinuousSamplerFactory.CompositeContinuousSampler
,CompositeSamplers.SharedStateContinuousSamplerFactory.CompositeSharedStateContinuousSampler
,ContinuousUniformSampler
,ContinuousUniformSampler.OpenIntervalContinuousUniformSampler
,GaussianSampler
,InverseTransformContinuousSampler
,InverseTransformParetoSampler
,LevySampler
,LogNormalSampler
,MarsagliaNormalizedGaussianSampler
,StableSampler
,StableSampler.Alpha1CMSStableSampler
,StableSampler.BaseStableSampler
,StableSampler.Beta0CMSStableSampler
,StableSampler.Beta0WeronStableSampler
,StableSampler.CauchyStableSampler
,StableSampler.CMSStableSampler
,StableSampler.GaussianStableSampler
,StableSampler.LevyStableSampler
,StableSampler.TransformedStableSampler
,StableSampler.WeronStableSampler
,TSampler
,TSampler.NormalTSampler
,TSampler.StudentsTSampler
,ZigguratNormalizedGaussianSampler
,ZigguratSampler
,ZigguratSampler.Exponential
,ZigguratSampler.Exponential.ExponentialMean
,ZigguratSampler.NormalizedGaussian
public interface ContinuousSampler
Sampler that generates values of type
double
.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondouble
sample()
Creates adouble
sample.default DoubleStream
samples()
Returns an effectively unlimited stream ofdouble
sample values.default DoubleStream
samples
(long streamSize) Returns a stream producing the givenstreamSize
number ofdouble
sample values.
-
Method Details
-
sample
double sample()Creates adouble
sample.- Returns:
- a sample.
-
samples
Returns an effectively unlimited stream ofdouble
sample values.The default implementation produces a sequential stream that repeatedly calls
sample
().- Returns:
- a stream of
double
values. - Since:
- 1.5
-
samples
Returns a stream producing the givenstreamSize
number ofdouble
sample values.The default implementation produces a sequential stream that repeatedly calls
sample
(); the stream is limited to the givenstreamSize
.- Parameters:
streamSize
- Number of values to generate.- Returns:
- a stream of
double
values. - Since:
- 1.5
-