Apache Commons logo Apache Commons RNG

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
759 0 0 0 100% 41.31 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.rng.sampling 162 0 0 0 100% 2.750 s
org.apache.commons.rng.sampling.shape 78 0 0 0 100% 0.250 s
org.apache.commons.rng.sampling.distribution 519 0 0 0 100% 38.31 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.rng.sampling

- Class Tests Errors Failures Skipped Success Rate Time
UnitSphereSamplerTest 25 0 0 0 100% 0.646 s
ListSamplerTest 10 0 0 0 100% 0.016 s
PermutationSamplerTest 14 0 0 0 100% 0.004 s
DiscreteProbabilityCollectionSamplerTest 15 0 0 0 100% 1.821 s
CollectionSamplerTest 3 0 0 0 100% 0.002 s
CompositeSamplersTest 26 0 0 0 100% 0.165 s
CombinationSamplerTest 10 0 0 0 100% 0.005 s
ObjectSamplerTest 9 0 0 0 100% 0.070 s
ArraySamplerTest 50 0 0 0 100% 0.021 s

org.apache.commons.rng.sampling.shape

- Class Tests Errors Failures Skipped Success Rate Time
UnitBallSamplerTest 14 0 0 0 100% 0.020 s
CoordinatesTest 2 0 0 0 100% 0.003 s
TetrahedronSamplerTest 7 0 0 0 100% 0.011 s
LineSamplerTest 19 0 0 0 100% 0.018 s
TriangleSamplerTest 21 0 0 0 100% 0.014 s
BoxSamplerTest 15 0 0 0 100% 0.184 s

org.apache.commons.rng.sampling.distribution

- Class Tests Errors Failures Skipped Success Rate Time
SmallMeanPoissonSamplerTest 7 0 0 0 100% 0.002 s
SamplerBaseTest 2 0 0 0 100% 0 s
GeometricSamplerTest 8 0 0 0 100% 0.002 s
FastLoadedDiceRollerDiscreteSamplerTest 67 0 0 0 100% 0.030 s
ZigguratNormalizedGaussianSamplerTest 2 0 0 0 100% 0.005 s
ContinuousSamplerTest 9 0 0 0 100% 0.005 s
DiscreteUniformSamplerTest 21 0 0 0 100% 0.005 s
LogNormalSamplerTest 4 0 0 0 100% 0.002 s
ZigguratSamplerTest 9 0 0 0 100% 2.514 s
MarsagliaNormalisedGaussianSamplerTest 2 0 0 0 100% 0.001 s
ContinuousUniformSamplerTest 6 0 0 0 100% 0.004 s
MarsagliaTsangWangDiscreteSamplerTest 34 0 0 0 100% 0.041 s
DiscreteSamplerTest 9 0 0 0 100% 0.012 s
InternalUtilsTest 10 0 0 0 100% 0.002 s
InverseTransformContinuousSamplerTest 1 0 0 0 100% 0.001 s
GaussianSamplerTest 8 0 0 0 100% 0.004 s
BoxMullerNormalisedGaussianSamplerTest 1 0 0 0 100% 0 s
KempSmallMeanPoissonSamplerTest 8 0 0 0 100% 0.002 s
ChengBetaSamplerTest 7 0 0 0 100% 0.005 s
LargeMeanPoissonSamplerTest 8 0 0 0 100% 0.001 s
DiscreteSamplerParametricTest 32 0 0 0 100% 3.658 s
LevySamplerTest 4 0 0 0 100% 0.007 s
GuideTableDiscreteSamplerTest 20 0 0 0 100% 0.001 s
BoxMullerGaussianSamplerTest 1 0 0 0 100% 0.001 s
LongSamplerTest 9 0 0 0 100% 0.004 s
AhrensDieterMarsagliaTsangGammaSamplerTest 5 0 0 0 100% 0.001 s
AhrensDieterExponentialSamplerTest 4 0 0 0 100% 0.003 s
BoxMullerLogNormalSamplerTest 1 0 0 0 100% 0 s
AliasMethodDiscreteSamplerTest 21 0 0 0 100% 0.011 s
StableSamplerTest 46 0 0 0 100% 0.105 s
InverseTransformDiscreteSamplerTest 1 0 0 0 100% 0.002 s
PoissonSamplerTest 3 0 0 0 100% 0.001 s
ContinuousSamplerParametricTest 54 0 0 0 100% 31.65 s
InverseTransformParetoSamplerTest 16 0 0 0 100% 0.026 s
UniformLongSamplerTest 24 0 0 0 100% 0.008 s
PoissonSamplerCacheTest 26 0 0 0 100% 0.009 s
TSamplerTest 6 0 0 0 100% 0.001 s
DirichletSamplerTest 18 0 0 0 100% 0.180 s
RejectionInversionZipfSamplerTest 5 0 0 0 100% 0.001 s

Test Cases

[Summary] [Package List] [Test Cases]

SmallMeanPoissonSamplerTest

testConstructorThrowsWithZeroMean 0 s
testSharedStateSampler 0 s
testSampleUpperBounds(double)[1] 0 s
testSampleUpperBounds(double)[2] 0 s
testSampleUpperBounds(double)[3] 0 s
testSampleUpperBounds(double)[4] 0 s
testConstructorThrowsWithMeanThatSetsProbabilityP0ToZero 0 s

SamplerBaseTest

testToString 0 s
testNextMethods 0 s

GeometricSamplerTest

testProbabilityOfSuccessIsOneSamplerToString 0.001 s
testProbabilityOfSuccessUnderOneIsValid 0 s
testSharedStateSamplerWithProbabilityOfSuccessOne 0 s
testSharedStateSampler 0 s
testProbabilityOfSuccessIsOneGeneratesZeroForSamples 0 s
testProbabilityOfSuccessAboveOneThrows 0.001 s
testProbabilityOfSuccessIsAlmostZeroGeneratesMaxValueForSamples 0 s
testProbabilityOfSuccessIsZeroThrows 0 s

UnitSphereSamplerTest

testSharedStateSampler1D 0.001 s
testSharedStateSampler2D 0 s
testSharedStateSampler3D 0 s
testSharedStateSampler4D 0 s
testNextNormSquaredAfterZeroIsValid 0 s
testDistribution4DWithFactoryConstructor 0.190 s
testDistribution3DWithFactoryConstructor 0.103 s
testDistribution2DWithFactoryConstructor 0.014 s
testSharedStateSampler4DWithFactoryConstructor 0 s
testDistribution1DWithFactoryConstructor 0.001 s
testSharedStateSampler3DWithFactoryConstructor 0 s
testSharedStateSampler2DWithFactoryConstructor 0 s
testInvalidDimensionThrowsWithFactoryConstructor 0 s
testSharedStateSampler1DWithFactoryConstructor 0.001 s
testInvalidInverseNormalisation2D 0 s
testInvalidInverseNormalisation3D 0 s
testInvalidInverseNormalisation4D 0 s
testDistribution1D 0.001 s
testDistribution2D 0.011 s
testDistribution3D 0.094 s
testDistribution4D 0.217 s
testBadProvider2D 0.004 s
testBadProvider3D 0.004 s
testBadProvider4D 0.003 s
testInvalidDimensionThrows 0.001 s

FastLoadedDiceRollerDiscreteSamplerTest

testSingleWeight 0 s
testFactoryConstructorWeights(double[])[1] 0 s
testFactoryConstructorWeights(double[])[2] 0 s
testFactoryConstructorWeights(double[])[3] 0 s
testFactoryConstructorWeights(double[])[4] 0 s
testFactoryConstructorWeights(double[])[5] 0 s
testFactoryConstructorWeights(double[])[6] 0 s
testFactoryConstructorWeights(double[])[7] 0 s
testFactoryConstructorWeights(double[])[8] 0 s
testFactoryConstructorWeights(double[])[9] 0 s
testFactoryConstructorWeights(double[])[10] 0 s
testFactoryConstructorWeights(double[])[11] 0 s
testFactoryConstructorWeights(double[])[12] 0 s
testFactoryConstructorWeights(double[])[13] 0 s
testToString 0.001 s
testScaledWeights(int)[1] 0.001 s
testScaledWeights(int)[2] 0.001 s
testScaledWeights(int)[3] 0 s
testScaledWeights(int)[4] 0 s
testScaledWeights(int)[5] 0.001 s
testScaledWeights(int)[6] 0 s
testSingleCategory 0 s
testCheckArraySize(long)[1] 0 s
testCheckArraySize(long)[2] 0.001 s
testCheckArraySize(long)[3] 0 s
testCheckArraySize(long)[4] 0 s
testCheckArraySize(long)[5] 0 s
testSamplesWeights(double[])[1] 0.001 s
testSamplesWeights(double[])[2] 0.001 s
testSamplesWeights(double[])[3] 0 s
testSamplesWeights(double[])[4] 0 s
testSamplesWeights(double[])[5] 0.001 s
testSamplesWeights(double[])[6] 0.001 s
testSamplesWeights(double[])[7] 0 s
testSamplesWeights(double[])[8] 0.001 s
testSamplesWeights(double[])[9] 0.001 s
testSamplesWeights(double[])[10] 0.001 s
testSamplesWeights(double[])[11] 0.001 s
testFactoryConstructorFrequencies(long[])[1] 0.001 s
testFactoryConstructorFrequencies(long[])[2] 0 s
testFactoryConstructorFrequencies(long[])[3] 0 s
testFactoryConstructorFrequencies(long[])[4] 0 s
testFactoryConstructorFrequencies(long[])[5] 0 s
testFactoryConstructorFrequencies(long[])[6] 0 s
testFactoryConstructorFrequencies(long[])[7] 0 s
testFactoryConstructorFrequencies(long[])[8] 0 s
testFactoryConstructorFrequencies(long[])[9] 0 s
testFactoryConstructorFrequencies(long[])[10] 0 s
testSharedStateSampler(long[])[1] 0.001 s
testSharedStateSampler(long[])[2] 0 s
testIndexOfNonZero 0 s
testAlphaRemovesWeights(int)[1] 0 s
testAlphaRemovesWeights(int)[2] 0.001 s
testAlphaRemovesWeights(int)[3] 0 s
testSingleFrequency 0 s
testSamplesWeightsMatchesFrequencies(long[])[1] 0.001 s
testSamplesWeightsMatchesFrequencies(long[])[2] 0 s
testSamplesWeightsMatchesFrequencies(long[])[3] 0 s
testSamplesWeightsMatchesFrequencies(long[])[4] 0 s
testSamplesWeightsMatchesFrequencies(long[])[5] 0 s
testSamplesWeightsMatchesFrequencies(long[])[6] 0 s
testSamplesFrequencies(long[])[1] 0 s
testSamplesFrequencies(long[])[2] 0.001 s
testSamplesFrequencies(long[])[3] 0.001 s
testSamplesFrequencies(long[])[4] 0 s
testSamplesFrequencies(long[])[5] 0.001 s
testSamplesFrequencies(long[])[6] 0.001 s

ZigguratNormalizedGaussianSamplerTest

testInfiniteLoop 0.004 s
testSharedStateSampler 0 s

ContinuousSamplerTest

testSamplesUnlimitedSize 0 s
testSamples 0.002 s
testSamples 0 s
testSamples 0 s
testSamples(int)[1] 0 s
testSamples(int)[2] 0 s
testSamples(int)[3] 0 s
testSamples(int)[4] 0 s
testSamples(int)[5] 0 s

DiscreteUniformSamplerTest

testSampleRejectionWithNonPowerOf2Range 0.001 s
testSamplesWithLargeNonPowerOf2RangeIsRejectionMethod 0 s
testSharedStateSamplerWithPowerOf2Range 0 s
testSamplesWithPowerOf2Range 0.001 s
testSharedStateSamplerWithRangeOf1 0 s
testSamplesWithFullRange 0 s
testToStringWithSmallRange 0 s
testConstructorThrowsWithLowerAboveUpper 0 s
testSharedStateSamplerWithSmallRange 0 s
testToStringWithLargeRange 0 s
testSamplesWithPowerOf2RangeIsBitShift 0 s
testSharedStateSamplerWithLargeRange 0 s
testToStringWithRangeOf1 0 s
testSamplesWithSmallNonPowerOf2Range 0 s
testSampleUniformityWithPowerOf2Range 0 s
testOffsetSamplesWithPowerOf2Range 0 s
testOffsetSamplesWithNonPowerOf2Range 0 s
testSamplesWithRangeOf1 0 s
testSampleUniformityWithNonPowerOf2Range 0.001 s
testToStringWithPowerOf2Range 0 s
testOffsetSamplesWithRangeOf1 0 s

LogNormalSamplerTest

testSharedStateSamplerThrowsIfUnderlyingSamplerReturnsWrongSharedState 0.001 s
testSharedStateSampler 0 s
testSharedStateSamplerThrowsIfUnderlyingSamplerDoesNotShareState 0.001 s
testConstructorThrowsWithZeroShape 0 s

ZigguratSamplerTest

testExponentialConstructorThrowsWithZeroMean 0 s
testExponentialSamplesWithQuantiles(String, Function)[1] 0.684 s
testExponentialSharedStateSampler 0 s
testGaussianSamplesWithQuantiles(String, Function)[1] 0.713 s
testExponentialSharedStateSamplerWithMean 0 s
testGaussianSamplesWithUniformValues(String, Function)[1] 0.564 s
testExponentialRecursion 0.001 s
testExponentialSamplesWithUniformValues(String, Function)[1] 0.547 s
testGaussianSharedStateSampler 0 s

ListSamplerTest

testSampleWhole 0.001 s
testShuffleHead 0 s
testShuffleTail 0.001 s
testSamplePrecondition1 0 s
testSamplePrecondition2 0 s
testShuffleMatchesPermutationSamplerShuffleDirectional 0 s
testShuffleMatchesPermutationSamplerShuffle 0.002 s
testShuffleWithSmallLinkedList 0.001 s
testShuffle 0 s
testSample 0.010 s

MarsagliaNormalisedGaussianSamplerTest

testSamplePairIsRejected 0.001 s
testSharedStateSampler 0 s

ContinuousUniformSamplerTest

testSamplerWithBoundsExcluded 0.002 s
testTinyOpenIntervalSample 0 s
testSharedStateSampler 0 s
testNoRestrictionOnOrderOfLowAndHighParameters 0.001 s
testInvalidOpenIntervalThrows 0 s
testExcludeBounds 0 s

PermutationSamplerTest

testSampleBoundaryCase 0 s
testSubSampleChiSquareTest 0.002 s
testShuffleNoDuplicates 0 s
testShuffleHead 0 s
testShuffleTail 0 s
testSharedStateSampler 0 s
testSamplePrecondition1 0 s
testSamplePrecondition2 0 s
testSamplePrecondition3 0 s
testSamplePrecondition4 0 s
testSampleChiSquareTest 0 s
testNaturalZero 0 s
testNatural 0 s
testSampleTrivial 0 s

MarsagliaTsangWangDiscreteSamplerTest

testCreateDiscreteDistributionThrowsWithZeroLengthProbabilites 0.002 s
testCreateDiscreteDistributionThrowsWithNullProbabilites 0 s
testCreateBinomialDistributionWithSmallestP0ValueAndHighestProbabilityOfSuccess 0.002 s
testCreateBinomialDistributionWithLargestTrialsAndSmallestProbabilityOfSuccess 0.001 s
testSharedStateSamplerWith32bitStorage 0.018 s
testCreateDiscreteDistributionThrowsWithInfiniteProbabilites 0 s
testToString 0.001 s
testCreateDiscreteDistributionThrowsWithInfiniteSumProbabilites 0 s
testCreatePoissonDistributionWithSmallMean 0.001 s
testBinomialSamplerToString 0.001 s
testSharedStateSamplerWith8bitStorage 0 s
testSharedStateSamplerWithInvertedBinomialDistribution 0 s
testSharedStateSamplerWith16bitStorage 0 s
testCreateDiscreteDistributionThrowsWithZeroSumProbabilites 0 s
testCreateBinomialDistributionWithLargeNumberOfTrials 0 s
testSharedStateSamplerWithFixedBinomialDistribution 0.001 s
testCreateBinomialDistributionThrowsWithProbabilityAbove1 0.001 s
testCreateBinomialDistributionThrowsWithProbabilityBelow0 0 s
testCreatePoissonDistributionWithMaximumMean 0 s
testRealProbabilityDistributionSamples 0.001 s
testCreatePoissonDistributionWithMediumMean 0 s
testCreatePoissonDistributionThrowsWithMeanLargerThanUpperBound 0.001 s
testCreateDiscreteDistributionThrowsWithNaNProbabilites 0 s
testCreateBinomialDistributionThrowsWithTrialsAboveMax 0 s
testStorageRequirements8 0.001 s
testCreateBinomialDistributionWithProbability50Percent 0 s
testCreateBinomialDistributionThrowsWhenP0IsZero 0 s
testCreateDiscreteDistributionThrowsWithNegativeProbabilites 0.001 s
testOffsetSamples 0.003 s
testCreateBinomialDistributionThrowsWithTrialsBelow0 0.001 s
testCreatePoissonDistributionThrowsWithZeroMean 0 s
testStorageRequirements16 0 s
testCreateBinomialDistributionWithProbability0 0 s
testCreateBinomialDistributionWithProbability1 0 s

UnitBallSamplerTest

testSharedStateSampler1D 0.001 s
testSharedStateSampler2D 0 s
testSharedStateSampler3D 0.001 s
testSharedStateSampler4D 0 s
checkVolumeFunctions 0.001 s
testInvalidInverseNormalisation3D 0.001 s
testInvalidInverseNormalisation4D 0 s
testDistribution1D 0.001 s
testDistribution2D 0.001 s
testDistribution3D 0.001 s
testDistribution4D 0.002 s
testDistribution5D 0.003 s
testDistribution6D 0.004 s
testInvalidDimensionThrows 0.001 s

DiscreteSamplerTest

testSamplesUnlimitedSize 0.007 s
testSamples 0.001 s
testSamples 0 s
testSamples 0 s
testSamples(int)[1] 0 s
testSamples(int)[2] 0.001 s
testSamples(int)[3] 0 s
testSamples(int)[4] 0 s
testSamples(int)[5] 0.001 s

InternalUtilsTest

testFactorialLogCacheSizeAboveRepresentableFactorials 0 s
testLogFactorialThrowsWhenNegative 0.001 s
testFactorialLog 0 s
testLogFactorialWithCacheThrowsWhenNegative 0 s
testMakeDouble 0 s
testFactorial 0 s
testFactorialThrowsWhenNotRepresentableAsLong 0 s
testFactorialLogCacheExpansion 0 s
testMakeNonZeroDouble 0 s
testFactorialThrowsWhenNegative 0.001 s

InverseTransformContinuousSamplerTest

testSharedStateSampler 0.001 s

DiscreteProbabilityCollectionSamplerTest

testSampleWithProbabilityAtLastItem 0.001 s
testPrecondition1 0 s
testPrecondition2 0 s
testPrecondition3 0 s
testPrecondition4(double)[1] 0 s
testPrecondition4(double)[2] 0 s
testPrecondition4(double)[3] 0.001 s
testPrecondition5(double)[1] 0 s
testPrecondition5(double)[2] 0 s
testPrecondition5(double)[3] 0 s
testPrecondition6 0.001 s
testPrecondition7 0 s
testSharedStateSampler 0 s
testSample 1.816 s
testSampleUsingMap 0 s

GaussianSamplerTest

testConstructorThrowsWithInfiniteStandardDeviation 0.001 s
testConstructorThrowsWithNaNMean 0 s
testSharedStateSamplerThrowsIfUnderlyingSamplerReturnsWrongSharedState 0 s
testSharedStateSampler 0 s
testSharedStateSamplerThrowsIfUnderlyingSamplerDoesNotShareState 0.001 s
testConstructorThrowsWithZeroStandardDeviation 0 s
testConstructorThrowsWithNaNStandardDeviation 0 s
testConstructorThrowsWithInfiniteMean 0 s

CollectionSamplerTest

testSharedStateSampler 0.001 s
testSamplePrecondition 0 s
testSampleTrivial 0 s

BoxMullerNormalisedGaussianSamplerTest

testSharedStateSampler 0 s

KempSmallMeanPoissonSamplerTest

testConstructorThrowsWithZeroMean 0 s
testSummationTo1AtUpperBound 0 s
testSummationFrom1AtUpperBound 0 s
testSharedStateSampler 0 s
testSamplerAtUpperBounds 0 s
testConstructorThrowsWithNegativeMean 0 s
testConstructorThrowsWithMeanLargerThanUpperBound 0 s
testConstructorWithNaNMean 0 s

ChengBetaSamplerTest

testConstructorThrowsWithZeroBeta 0.001 s
testToString 0.001 s
testSharedStateSamplerWithAlphaAndBetaAbove1AndAlphaAboveBeta 0.001 s
testSharedStateSamplerWithAlphaAndBetaAbove1AndAlphaBelowBeta 0 s
testConstructorThrowsWithZeroAlpha 0 s
testSharedStateSamplerWithAlphaOrBetaBelow1AndAlphaAboveBeta 0 s
testSharedStateSamplerWithAlphaOrBetaBelow1AndAlphaBelowBeta 0.001 s

CoordinatesTest

testRequireFiniteWithMessageThrows 0.002 s
testRequireLengthWithMessageThrows 0 s

TetrahedronSamplerTest

testChangedInputCoordinates 0 s
testNonFiniteVertexCoordinates 0.001 s
testExtremeValueCoordinates 0 s
testDistribution 0.004 s
testSharedStateSampler 0.003 s
testTetrahedronContains 0 s
testInvalidDimensionThrows 0.001 s

CompositeSamplersTest

testSharedStateDiscreteSamplerSamples 0.010 s
testObjectSamplerSamples 0.010 s
testSharedStateContinuousSamplerWithCustomFactory 0.001 s
testSharedStateObjectSamplerSamplesWithCustomSharedStateDiscreteSamplerFactory 0.006 s
testSharedStateDiscreteSamplerWithCustomFactory 0 s
testObjectSamplerSamplesWithUniformWeights 0.010 s
testSharedStateLongSamplerWithCustomFactory 0.001 s
testSharedStateLongSamplerSamples 0.008 s
testObjectSamplerSamplesWithVeryLargeWeights 0.007 s
testEmptyBuilderThrows 0 s
testInvalidWeights 0 s
testSharedStateLongSampler 0 s
testDiscreteSamplerSamples 0.007 s
testSharedStateObjectSampler 0 s
testNullSharedStateObjectSamplerThrows 0 s
testDiscreteProbabilitySampler 0.053 s
testObjectSamplerSamplesWithSubNormalWeights 0.008 s
testSharedStateContinuousSamplerSamples 0.011 s
testSingleSharedStateObjectSampler 0.001 s
testSharedStateObjectSamplerWithCustomFactory 0 s
testSharedStateObjectSamplerSamplesWithCustomDiscreteSamplerFactory 0.013 s
testSharedStateDiscreteSampler 0 s
testLongSamplerSamples 0.006 s
testSharedStateObjectSamplerSamples 0.007 s
testSharedStateContinuousSampler 0 s
testContinuousSamplerSamples 0.005 s

LargeMeanPoissonSamplerTest

testSharedStateSamplerWithIntegerMean 0 s
testConstructorThrowsWithStateAndNegativeFractionalMean 0.001 s
testSharedStateSamplerWithFractionalMean 0 s
testConstructorThrowsWithMeanLargerThanUpperBound 0 s
testConstructorThrowsWithMeanBelow1 0 s
testConstructorThrowsWithStateAndFractionalMeanOne 0 s
testCanComputeSameSamplesWhenConstructedWithState 0 s
testConstructorThrowsWithStateAndNonFractionalMean 0 s

DiscreteSamplerParametricTest

testSampling(DiscreteSamplerTestData)[1] 0.623 s
testSampling(DiscreteSamplerTestData)[2] 0.041 s
testSampling(DiscreteSamplerTestData)[3] 0.019 s
testSampling(DiscreteSamplerTestData)[4] 0.054 s
testSampling(DiscreteSamplerTestData)[5] 0.015 s
testSampling(DiscreteSamplerTestData)[6] 0.593 s
testSampling(DiscreteSamplerTestData)[7] 1.324 s
testSampling(DiscreteSamplerTestData)[8] 0.037 s
testSampling(DiscreteSamplerTestData)[9] 0.008 s
testSampling(DiscreteSamplerTestData)[10] 0.011 s
testSampling(DiscreteSamplerTestData)[11] 0.010 s
testSampling(DiscreteSamplerTestData)[12] 0.195 s
testSampling(DiscreteSamplerTestData)[13] 0.060 s
testSampling(DiscreteSamplerTestData)[14] 0.049 s
testSampling(DiscreteSamplerTestData)[15] 0.009 s
testSampling(DiscreteSamplerTestData)[16] 0.168 s
testSampling(DiscreteSamplerTestData)[17] 0.021 s
testSampling(DiscreteSamplerTestData)[18] 0.040 s
testSampling(DiscreteSamplerTestData)[19] 0.017 s
testSampling(DiscreteSamplerTestData)[20] 0.009 s
testSampling(DiscreteSamplerTestData)[21] 0.048 s
testSampling(DiscreteSamplerTestData)[22] 0.042 s
testSampling(DiscreteSamplerTestData)[23] 0.072 s
testSampling(DiscreteSamplerTestData)[24] 0.013 s
testSampling(DiscreteSamplerTestData)[25] 0.036 s
testSampling(DiscreteSamplerTestData)[26] 0.036 s
testSampling(DiscreteSamplerTestData)[27] 0.014 s
testSampling(DiscreteSamplerTestData)[28] 0.008 s
testSampling(DiscreteSamplerTestData)[29] 0.013 s
testSampling(DiscreteSamplerTestData)[30] 0.009 s
testSampling(DiscreteSamplerTestData)[31] 0.011 s
testSampling(DiscreteSamplerTestData)[32] 0.024 s

LevySamplerTest

testConstructorThrowsWithNegativeScale 0.001 s
testSharedStateSampler 0 s
testConstructorThrowsWithZeroScale 0 s
testSupport 0.005 s

GuideTableDiscreteSamplerTest

testConstructorThrowsWithInfiniteSumProbabilites 0.001 s
testConstructorThrowsWithNegativeProbabilites 0 s
testConstructorThrowsWithZeroLengthProbabilites 0 s
testNonUniformSamplesWithObservations 0.001 s
testToString 0 s
testConstructorThrowsWithNegativeAlpha 0 s
testNonUniformSamplesWithZeroProbabilities 0.002 s
testConstructorThrowsWithInfiniteProbabilites 0 s
testSharedStateSampler 0 s
testConstructorThrowsWithNullProbabilites 0 s
testNonUniformSamplesWithProbabilities(double)[1] 0.002 s
testNonUniformSamplesWithProbabilities(double)[2] 0 s
testNonUniformSamplesWithProbabilities(double)[3] 0 s
testConstructorThrowsWithZeroAlpha 0 s
testBinomialSamples 0.001 s
testNonUniformSamplesWithZeroObservations 0.001 s
testConstructorThrowsWithZeroSumProbabilites 0 s
testConstructorThrowsWithNaNProbabilites 0.001 s
testUniformSamplesWithNoObservationLessThanTheMean 0 s
testPoissonSamples 0.001 s

BoxMullerGaussianSamplerTest

testConstructorThrowsWithZeroStandardDeviation 0 s

CombinationSamplerTest

testNequalsZeroThrows 0 s
testUniformWithKmoreThanHalfN 0.003 s
testKequalsZeroThrows 0.001 s
testSampleIsInDomain 0 s
testSharedStateSampler 0 s
testKgreaterThanNThrows 0 s
testSampleWhenNequalsKIsNotShuffled 0 s
testNisNegativeThrows 0 s
testKisNegativeThrows 0.001 s
testUniformWithKlessThanHalfN 0 s

LongSamplerTest

testSamplesUnlimitedSize 0 s
testSamples 0 s
testSamples 0 s
testSamples 0 s
testSamples(int)[1] 0.001 s
testSamples(int)[2] 0 s
testSamples(int)[3] 0 s
testSamples(int)[4] 0 s
testSamples(int)[5] 0 s

AhrensDieterMarsagliaTsangGammaSamplerTest

testToString 0 s
testConstructorThrowsWithZeroAlpha 0 s
testConstructorThrowsWithZeroTheta 0 s
testSharedStateSamplerWithAlphaAboveOne 0 s
testSharedStateSamplerWithAlphaBelowOne 0 s

AhrensDieterExponentialSamplerTest

testConstructorThrowsWithZeroMean 0 s
testSamplerWithZeroFromRandomGenerator 0.002 s
testSharedStateSampler 0 s
testSamplerWithOneFromRandomGenerator 0 s

BoxMullerLogNormalSamplerTest

testConstructorThrowsWithZeroShape 0 s

AliasMethodDiscreteSamplerTest

testNonUniformSamplesWithObservations 0.002 s
testSharedStateSamplerWithPowerOf2TableSize 0 s
testConstructorThrowsWithNaNProbabilities 0 s
testToString 0 s
testNonUniformSamplesWithProbabilitiesPaddedToPowerOf2 0.001 s
testNonUniformSamplesWithObservationsPaddedToPowerOf2 0.001 s
testConstructorThrowsWithInfiniteProbabilities 0.001 s
testNonUniformSamplesWithZeroProbabilities 0 s
testConstructorThrowsWithNullProbabilities 0 s
testConstructorThrowsWithZeroSumProbabilities 0.001 s
testNonUniformSamplesWithProbabilities 0 s
testConstructorThrowsWithInfiniteSumProbabilities 0 s
testLargeTableSize 0.002 s
testNonUniformSamplesWithProbabilitiesWithDefaultFactoryConstructor 0.001 s
testBinomialSamples 0 s
testConstructorThrowsWithNegativeProbabilities 0 s
testNonUniformSamplesWithZeroObservations 0.001 s
testUniformSamplesWithNoObservationLessThanTheMean 0 s
testSharedStateSamplerWithNonPowerOf2TableSize 0 s
testPoissonSamples 0.001 s
testConstructorThrowsWithZeroLengthProbabilities 0 s

StableSamplerTest

testAlphaTooCloseToZeroThrows 0.002 s
testDeltaNaNThrows 0 s
testDeltaNegInfThrows 0 s
testAlphaNaNThrows 0.001 s
testSymmetry 0.007 s
testSamplesWithAlpha1 0 s
testRandomDeviatesUandW 0 s
testZIsNotAlwaysAboveZero 0 s
testTransformedSampler 0 s
testExpM1 0 s
testTan2 0 s
testSpecializedBeta0CMSImplementation 0 s
testToString 0 s
testGammaInfThrows 0 s
testBetaAboveOneThrows 0 s
testSamplesWithZInfinite 0 s
testD2 0 s
testA2IsNotZero 0 s
testConvergenceWithAlphaCloseTo1 0.003 s
testExtremeInputsToSample 0.002 s
testBetaBelowMinusOneThrows 0 s
testAlpha1SamplesWithExtremePhi 0 s
testDeltaInfThrows 0 s
testAlphaAboveTwoThrows 0 s
testSamplesWithZBelow0 0 s
testSamplesWithAlphaNot1 0 s
testSharedStateSampler 0.001 s
testSymmetryLevy 0 s
testAlphaBelowZeroThrows 0 s
testGammaNotStrictlyPositiveThrows 0 s
testBetaNaNThrows 0 s
testSamplesWithDInfinite 0 s
testImplementationsMatch 0.014 s
testSinAlphaPhi 0 s
testComputeDWhenZIsFiniteNonZero 0 s
testCosPhiMinusAlphaPhiXi 0.027 s
testBeta0SamplesWithDInfinite 0 s
testWeronImplementationEdgeCase 0 s
testAlphaZeroThrows 0 s
testSamplerOutputIsContinuousFunction 0.020 s
testTauLimits 0 s
testGammaNaNThrows 0 s
testSpecializedBeta0WeronImplementation 0 s
testSupportWithTransformation 0.018 s
testSupport 0 s
testSinAlphaPhiMinusAtanZeta 0.001 s

InverseTransformDiscreteSamplerTest

testSharedStateSampler 0.001 s

PoissonSamplerTest

testSharedStateSamplerWithSmallMean 0.001 s
testToString 0 s
testSharedStateSamplerWithLargeMean 0 s

ContinuousSamplerParametricTest

testSampling(ContinuousSamplerTestData)[1] 0.108 s
testSampling(ContinuousSamplerTestData)[2] 0.114 s
testSampling(ContinuousSamplerTestData)[3] 0.107 s
testSampling(ContinuousSamplerTestData)[4] 0.066 s
testSampling(ContinuousSamplerTestData)[5] 0.028 s
testSampling(ContinuousSamplerTestData)[6] 0.025 s
testSampling(ContinuousSamplerTestData)[7] 4.667 s
testSampling(ContinuousSamplerTestData)[8] 0.250 s
testSampling(ContinuousSamplerTestData)[9] 0.254 s
testSampling(ContinuousSamplerTestData)[10] 0.341 s
testSampling(ContinuousSamplerTestData)[11] 0.326 s
testSampling(ContinuousSamplerTestData)[12] 0.064 s
testSampling(ContinuousSamplerTestData)[13] 1.821 s
testSampling(ContinuousSamplerTestData)[14] 0.052 s
testSampling(ContinuousSamplerTestData)[15] 0.037 s
testSampling(ContinuousSamplerTestData)[16] 0.024 s
testSampling(ContinuousSamplerTestData)[17] 3.556 s
testSampling(ContinuousSamplerTestData)[18] 2.327 s
testSampling(ContinuousSamplerTestData)[19] 0.228 s
testSampling(ContinuousSamplerTestData)[20] 0.042 s
testSampling(ContinuousSamplerTestData)[21] 0.071 s
testSampling(ContinuousSamplerTestData)[22] 0.081 s
testSampling(ContinuousSamplerTestData)[23] 0.101 s
testSampling(ContinuousSamplerTestData)[24] 0.026 s
testSampling(ContinuousSamplerTestData)[25] 0.026 s
testSampling(ContinuousSamplerTestData)[26] 3.223 s
testSampling(ContinuousSamplerTestData)[27] 0.186 s
testSampling(ContinuousSamplerTestData)[28] 0.177 s
testSampling(ContinuousSamplerTestData)[29] 0.139 s
testSampling(ContinuousSamplerTestData)[30] 0.102 s
testSampling(ContinuousSamplerTestData)[31] 0.084 s
testSampling(ContinuousSamplerTestData)[32] 0.082 s
testSampling(ContinuousSamplerTestData)[33] 4.751 s
testSampling(ContinuousSamplerTestData)[34] 1.560 s
testSampling(ContinuousSamplerTestData)[35] 0.141 s
testSampling(ContinuousSamplerTestData)[36] 0.152 s
testSampling(ContinuousSamplerTestData)[37] 0.022 s
testSampling(ContinuousSamplerTestData)[38] 0.026 s
testSampling(ContinuousSamplerTestData)[39] 0.042 s
testSampling(ContinuousSamplerTestData)[40] 0.031 s
testSampling(ContinuousSamplerTestData)[41] 0.031 s
testSampling(ContinuousSamplerTestData)[42] 0.163 s
testSampling(ContinuousSamplerTestData)[43] 0.167 s
testSampling(ContinuousSamplerTestData)[44] 0.104 s
testSampling(ContinuousSamplerTestData)[45] 0.155 s
testSampling(ContinuousSamplerTestData)[46] 0.178 s
testSampling(ContinuousSamplerTestData)[47] 4.659 s
testSampling(ContinuousSamplerTestData)[48] 0.158 s
testSampling(ContinuousSamplerTestData)[49] 0.140 s
testSampling(ContinuousSamplerTestData)[50] 0.138 s
testSampling(ContinuousSamplerTestData)[51] 0.035 s
testSampling(ContinuousSamplerTestData)[52] 0.029 s
testSampling(ContinuousSamplerTestData)[53] 0.021 s
testSampling(ContinuousSamplerTestData)[54] 0.179 s

LineSamplerTest

testNonFiniteVertexCoordinates 0.001 s
testSharedStateSampler1D 0.001 s
testSharedStateSampler2D 0.001 s
testSharedStateSampler3D 0 s
testSharedStateSampler4D 0 s
testDimensionMismatchThrows 0 s
testChangedInputCoordinates1D 0 s
testChangedInputCoordinates2D 0 s
testChangedInputCoordinates3D 0.001 s
testChangedInputCoordinates4D 0 s
testDistribution1D 0.005 s
testDistribution2D 0.001 s
testDistribution3D 0.002 s
testDistribution4D 0.001 s
testExtremeValueCoordinates1D 0.001 s
testExtremeValueCoordinates2D 0 s
testExtremeValueCoordinates3D 0 s
testExtremeValueCoordinates4D 0 s
testInvalidDimensionThrows 0 s

ObjectSamplerTest

testSamplesUnlimitedSize 0 s
testSamples 0.001 s
testSamples 0 s
testSamples 0 s
testSamples(int)[1] 0.003 s
testSamples(int)[2] 0 s
testSamples(int)[3] 0 s
testSamples(int)[4] 0.001 s
testSamples(int)[5] 0 s

ArraySamplerTest

testShuffleFullRangeMatchesShuffle(int)[1] 0.001 s
testShuffleFullRangeMatchesShuffle(int)[2] 0 s
testShuffleSubRange(int, int, int)[1] 0.001 s
testShuffleSubRange(int, int, int)[2] 0 s
testShuffleSubRange(int, int, int)[3] 0 s
testShuffleSubRange(int, int, int)[4] 0 s
testShuffleSubRange(int, int, int)[5] 0 s
testShuffleSubRange(int, int, int)[6] 0 s
testShuffleSubRangeMatchesShuffle(int, int, int)[1] 0 s
testShuffleSubRangeMatchesShuffle(int, int, int)[2] 0 s
testShuffleSubRangeMatchesShuffle(int, int, int)[3] 0 s
testShuffleNoDuplicates(int)[1] 0 s
testShuffleNoDuplicates(int)[2] 0 s
testShuffleNoDuplicates(int)[3] 0 s
testShuffleIsRandom(int)[1] 0.001 s
testShuffleIsRandom(int)[2] 0.001 s
testShuffleBooleanSubRange(int, int, int)[1] 0 s
testShuffleBooleanSubRange(int, int, int)[2] 0.001 s
testShuffleBooleanSubRange(int, int, int)[3] 0 s
testShuffleBooleanSubRange(int, int, int)[4] 0 s
testShuffleBooleanSubRange(int, int, int)[5] 0.001 s
testShuffleSubRangeNoDuplicates(int, int, int)[1] 0 s
testShuffleSubRangeNoDuplicates(int, int, int)[2] 0.001 s
testShuffleSubRangeNoDuplicates(int, int, int)[3] 0 s
testShuffleSubRangeNoDuplicates(int, int, int)[4] 0 s
testInvalidSubRange(int, int, int)[1] 0.001 s
testInvalidSubRange(int, int, int)[2] 0 s
testInvalidSubRange(int, int, int)[3] 0.001 s
testInvalidSubRange(int, int, int)[4] 0 s
testInvalidSubRange(int, int, int)[5] 0 s
testInvalidSubRange(int, int, int)[6] 0 s
testInvalidSubRange(int, int, int)[7] 0 s
testShuffleBoolean(int)[1] 0 s
testShuffleBoolean(int)[2] 0 s
testReturnedReference(int)[1] 0.001 s
testReturnedReference(int)[2] 0 s
testReturnedReference(int)[3] 0 s
testNullArguments 0.001 s
testShuffle(int)[1] 0 s
testShuffle(int)[2] 0 s
testShuffle(int)[3] 0 s
testShuffleSubRangeIsRandom(int, int, int)[1] 0.001 s
testShuffleSubRangeIsRandom(int, int, int)[2] 0.001 s
testShuffleSubRangeIsRandom(int, int, int)[3] 0 s
testShuffleSubRangeIsRandom(int, int, int)[4] 0.001 s
testReturnedReferenceRange(int, int, int)[1] 0 s
testReturnedReferenceRange(int, int, int)[2] 0 s
testReturnedReferenceRange(int, int, int)[3] 0 s
testReturnedReferenceRange(int, int, int)[4] 0 s
testReturnedReferenceRange(int, int, int)[5] 0 s

TriangleSamplerTest

testNonFiniteVertexCoordinates 0.001 s
testSharedStateSampler2D 0.001 s
testSharedStateSampler3D 0 s
testSharedStateSampler4D 0 s
testSamplingAssumptions 0 s
testTriangleContains 0 s
testDimensionMismatchThrows 0.001 s
testChangedInputCoordinates2D 0 s
testChangedInputCoordinates3D 0 s
testChangedInputCoordinates4D 0.001 s
testDistribution2D 0.003 s
testDistribution3D 0.002 s
testDistribution4D 0.002 s
testExtremeValueCoordinates2D 0 s
testExtremeValueCoordinates3D 0 s
testExtremeValueCoordinates4D 0 s
testRotations3D 0 s
testRotations4D 0 s
testTransform3D 0.001 s
testTransform4D 0 s
testInvalidDimensionThrows 0 s

InverseTransformParetoSamplerTest

testTinyShape(double, double)[1] 0.005 s
testTinyShape(double, double)[2] 0.001 s
testTinyShape(double, double)[3] 0 s
testTinyShape(double, double)[4] 0 s
testTinyShape(double, double)[5] 0 s
testTinyShape(double, double)[6] 0.001 s
testSharedStateSampler(double, double)[1] 0 s
testSharedStateSampler(double, double)[2] 0.001 s
testConstructorThrowsWithZeroScale 0 s
testConstructorThrowsWithZeroShape 0 s
testLargeShape(double, double)[1] 0.001 s
testLargeShape(double, double)[2] 0 s
testLargeShape(double, double)[3] 0 s
testLargeShape(double, double)[4] 0 s
testLargeShape(double, double)[5] 0.001 s
testLargeShape(double, double)[6] 0 s

BoxSamplerTest

testNonFiniteVertexCoordinates 0.059 s
testSharedStateSampler2D 0.001 s
testSharedStateSampler3D 0 s
testSharedStateSampler4D 0 s
testDimensionMismatchThrows 0 s
testChangedInputCoordinates2D 0.002 s
testChangedInputCoordinates3D 0 s
testChangedInputCoordinates4D 0.001 s
testDistribution2D 0.030 s
testDistribution3D 0.012 s
testDistribution4D 0.039 s
testExtremeValueCoordinates2D 0.001 s
testExtremeValueCoordinates3D 0 s
testExtremeValueCoordinates4D 0.001 s
testInvalidDimensionThrows 0 s

UniformLongSamplerTest

testSamplesWithLargeNonPowerOf2RangeIsRejectionMethod 0.002 s
testSharedStateSamplerWithPowerOf2Range 0 s
testSamplesWithPowerOf2Range 0.001 s
testSharedStateSamplerWithRangeOf1 0 s
testSamplesWithFullRange 0 s
testToStringWithSmallRange 0 s
testConstructorThrowsWithLowerAboveUpper 0 s
testSharedStateSamplerWithSmallRange 0 s
testToStringWithLargeRange 0 s
testSamplesWithPowerOf2RangeIsBitShift 0 s
testSharedStateSamplerWithLargeRange 0 s
testToStringWithRangeOf1 0 s
testSamplesWithSmallNonPowerOf2Range(long)[1] 0.001 s
testSamplesWithSmallNonPowerOf2Range(long)[2] 0 s
testSamplesWithSmallNonPowerOf2Range(long)[3] 0 s
testSamplesWithSmallNonPowerOf2Range(long)[4] 0 s
testSamplesWithSmallNonPowerOf2Range(long)[5] 0 s
testSamplesWithSmallNonPowerOf2Range(long)[6] 0 s
testSampleUniformityWithPowerOf2Range 0.001 s
testOffsetSamplesWithPowerOf2Range 0 s
testOffsetSamplesWithNonPowerOf2Range 0 s
testSamplesWithRangeOf1 0 s
testToStringWithPowerOf2Range 0 s
testOffsetSamplesWithRangeOf1 0.001 s

PoissonSamplerCacheTest

testMinimumCachedMean 0.001 s
testCanComputeSameSamplesAsPoissonSamplerWithCacheAboveTheUpperRange 0 s
testCreateSharedStateSamplerThrowsWithZeroMean 0.001 s
testConstructorWhenMaxAboveMin 0 s
testCanComputeSameSamplesAsPoissonSamplerWithPartialCacheCoveringUpperRange 0 s
testCanComputeSameSamplesAsPoissonSamplerReusingCacheNoRange 0.001 s
testWithRangeConstructorThrowsWhenMaxIsLessThanMin 0 s
testConstructorWhenMinBelow0 0 s
testCanComputeSameSamplesAsPoissonSamplerReusingCacheEntireRange 0 s
testCreateSharedStateSamplerThrowsWithNonIntegerMean 0 s
testWithRangeConstructorWhenCacheHasNoCapcity 0 s
testWithRangeConstructorWhenMaxEqualsMin 0 s
testCanComputeSameSamplesAsPoissonSamplerReusingCacheLowerRange 0 s
testWithRangeConstructorWithNoCache 0 s
testWithinRange 0 s
testConstructorWhenMaxEqualsMin 0 s
testCreatePoissonSampler 0 s
testWithRangeConstructorWhenMinBelow0 0 s
testCanComputeSameSamplesAsPoissonSamplerWithNoCache 0 s
testCanComputeSameSamplesAsPoissonSamplerWithPartialCacheCoveringLowerRange 0 s
testCanComputeSameSamplesAsPoissonSamplerWithFullRangeCache 0 s
testConstructorThrowsWhenMaxIsLessThanMin 0.001 s
testWithRangeConstructorWhenMaxAboveMin 0 s
testCanComputeSameSamplesAsPoissonSamplerReusingCacheUpperRange 0 s
testConstructorWithNoCache 0 s
testConstructorWhenMaxBelow0 0 s

TSamplerTest

testConstructorThrowsWithBadDegreesOfFreedom(double)[1] 0 s
testConstructorThrowsWithBadDegreesOfFreedom(double)[2] 0 s
testConstructorThrowsWithBadDegreesOfFreedom(double)[3] 0 s
testExtremelyLargeDegreesOfFreedom 0 s
testSharedStateSampler(double)[1] 0 s
testSharedStateSampler(double)[2] 0 s

DirichletSamplerTest

testSymmetricDistributionThrowsWithInvalidNumberOfCategories 0.001 s
testSymmetricDistributionThrowsWithInfiniteConcentration 0 s
testToString 0.001 s
testSymmetricDistributionThrowsWithZeroConcentration 0 s
testSharedStateSampler 0 s
testInvalidSampleIsIgnored 0.001 s
testDistributionThrowsWithZeroConcentration 0 s
testDistributionThrowsWithNaNConcentration 0 s
testDistributionThrowsWithInvalidNumberOfCategories 0 s
testSymmetricCaseMatchesGeneralCase 0.001 s
testDistributionThrowsWithInfiniteConcentration 0 s
testSampling1 0.080 s
testSampling2 0.016 s
testSampling3 0.041 s
testSampling4 0.011 s
testSampling5 0.025 s
testSharedStateSamplerForSymmetricCase 0 s
testSymmetricDistributionThrowsWithNaNConcentration 0 s

RejectionInversionZipfSamplerTest

testToString 0 s
testSharedStateSamplerWithZeroExponent 0 s
testSharedStateSampler 0 s
testConstructorThrowsWithNegativeExponent 0.001 s
testConstructorThrowsWithZeroNumberOfElements 0 s