Package org.apache.commons.rng.examples.jmh.sampling.distribution
Benchmarks for the
org.apache.commons.rng.sampling.distribution components.-
Class Summary Class Description AliasMethodDiscreteSamplerPerformance Executes benchmark to test theAliasMethodDiscreteSamplerusing different zero padding on the input probability distribution.AliasMethodDiscreteSamplerPerformance.DistributionData The discrete probability distribution and a sampler.ContinuousSamplersPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers for different types ofContinuousSampler.ContinuousSamplersPerformance.Sources TheContinuousSamplersamplers to use for testing.DiscreteSamplersPerformance Executes benchmark to compare the speed of generation of random numbers from the various source providers for different types ofDiscreteSampler.DiscreteSamplersPerformance.Sources TheDiscreteSamplersamplers to use for testing.DiscreteUniformSamplerGenerationPerformance Executes benchmark to compare the speed of generation of integer numbers in a positive range using theDiscreteUniformSamplerorUniformRandomProvider.nextInt(int).DiscreteUniformSamplerGenerationPerformance.IntRange The upper range for theintgeneration.DiscreteUniformSamplerGenerationPerformance.Sources The benchmark state (retrieve the various "RandomSource"s).EnumeratedDistributionSamplersPerformance Executes benchmark to compare the speed of generation of random numbers from an enumerated discrete probability distribution.EnumeratedDistributionSamplersPerformance.DirichletDistributionSources Sample random probability arrays from a Dirichlet distribution.EnumeratedDistributionSamplersPerformance.FastLoadedDiceRollerDiscreteSamplerSources TheFastLoadedDiceRollerDiscreteSamplersamplers to use for testing.EnumeratedDistributionSamplersPerformance.KnownDistributionSources Define known probability distributions for testing.EnumeratedDistributionSamplersPerformance.LocalRandomSources The random sources to use for testing.EnumeratedDistributionSamplersPerformance.RandomDistributionSources Define random probability distributions of known size for testing.EnumeratedDistributionSamplersPerformance.SamplerSources TheDiscreteSamplersamplers to use for testing.GeometricSamplersPerformance Executes a benchmark to compare the speed of generation of Geometric random numbers using different methods.GeometricSamplersPerformance.Sources The samplers's to use for testing.LevySamplersPerformance Executes a benchmark to compare the speed of generation of Levy distributed random numbers using different methods.LevySamplersPerformance.Sources The samplers's to use for testing.NextGaussianPerformance Benchmark to compare the speed of generation of normally-distributed random numbers ofRandom.nextGaussian()against implementations ofNormalizedGaussianSampler.NextGaussianPerformance.JDKSource TheRandomto use for testing.NextGaussianPerformance.Sources TheNormalizedGaussianSamplersamplers to use for testing.PoissonSamplerCachePerformance Executes benchmark to compare the speed of generation of Poisson random numbers when using a cache.PoissonSamplerCachePerformance.MeanRange The range of mean values for testing the cache.PoissonSamplerCachePerformance.Sources The benchmark state (retrieve the various "RandomSource"s).PoissonSamplersPerformance Executes benchmark to compare the speed of generation of Poisson distributed random numbers.PoissonSamplersPerformance.Means The mean for the call toMath.exp(double).PoissonSamplersPerformance.Sources TheDiscreteSamplersamplers to use for testing.StableSamplerPerformance Executes a benchmark to compare the speed of generation of stable random numbers using different methods.StableSamplerPerformance.Alpha1StableSamplerSource Sampling withalpha = 1andbeta != 0.StableSamplerPerformance.BaselineSamplerSource Baseline with an exponential deviate and a uniform deviate.StableSamplerPerformance.Beta0StableSamplerSource Sampling withalpha != 1andbeta = 0.StableSamplerPerformance.D2Source Source for testing implementations of(exp(x) - 1) / x.StableSamplerPerformance.GeneralStableSamplerSource Sampling withalpha != 1andbeta != 0.StableSamplerPerformance.SamplerSource Defines theRandomSourcefor testing aContinuousSampler.StableSamplerPerformance.StableSamplerSource The sampler to use for testing.StableSamplerPerformance.TanSource Source for testing implementations of tan(x) / x.StableSamplerPerformance.UniformRandomSource Source for a uniform random deviate in an open interval, e.g.ZigguratSamplerPerformance Executes a benchmark to compare the speed of generation of random numbers using variations of the ziggurat method.ZigguratSamplerPerformance.DiffSources Defines method to use for creating two randomlongvalues in ascending order.ZigguratSamplerPerformance.ExpSources Defines method to use for computingexp(x)when-8 <= x <= 0.ZigguratSamplerPerformance.IndexCompareSources Defines method to use for creating an index values from a random long and comparing it to anintlimit.ZigguratSamplerPerformance.IndexSources Defines method to use for creatingintindex values from a random long.ZigguratSamplerPerformance.InterpolationSources Defines method to use for interpolating the X or Y tables from unsignedlongvalues.ZigguratSamplerPerformance.LongSources Defines method to use for creating unsignedlongvalues.ZigguratSamplerPerformance.SequentialSources The samplers to use for testing the ziggurat method with sequential sample generation.ZigguratSamplerPerformance.SignBitSources Defines method to extract a sign bit from alongvalue.ZigguratSamplerPerformance.SingleSources The samplers to use for testing the ziggurat method with single sample generation.ZigguratSamplerPerformance.Sources The samplers to use for testing the ziggurat method.