Apache Commons logo Apache Commons RNG

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
689 0 0 0 100% 60.755

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 108 0 0 0 100% 3.86
org.apache.commons.rng.sampling.shape 78 0 0 0 100% 0.143
org.apache.commons.rng.sampling.distribution 503 0 0 0 100% 56.752

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.895
CollectionSamplerTest 3 0 0 0 100% 0.003
PermutationSamplerTest 14 0 0 0 100% 0.008
ListSamplerTest 10 0 0 0 100% 0.021
DiscreteProbabilityCollectionSamplerTest 11 0 0 0 100% 2.337
CombinationSamplerTest 10 0 0 0 100% 0.221
CompositeSamplersTest 26 0 0 0 100% 0.314
ObjectSamplerTest 9 0 0 0 100% 0.061

org.apache.commons.rng.sampling.shape

Class Tests Errors Failures Skipped Success Rate Time
BoxSamplerTest 15 0 0 0 100% 0.056
TetrahedronSamplerTest 7 0 0 0 100% 0.013
LineSamplerTest 19 0 0 0 100% 0.016
CoordinatesTest 2 0 0 0 100% 0.003
TriangleSamplerTest 21 0 0 0 100% 0.027
UnitBallSamplerTest 14 0 0 0 100% 0.028

org.apache.commons.rng.sampling.distribution

Class Tests Errors Failures Skipped Success Rate Time
GeometricSamplerTest 8 0 0 0 100% 0.003
ContinuousSamplerParametricTest 53 0 0 0 100% 46.284
InverseTransformContinuousSamplerTest 1 0 0 0 100% 0.002
DiscreteSamplerTest 9 0 0 0 100% 0.008
AhrensDieterMarsagliaTsangGammaSamplerTest 5 0 0 0 100% 0.002
RejectionInversionZipfSamplerTest 5 0 0 0 100% 0.002
BoxMullerGaussianSamplerTest 1 0 0 0 100% 0
SmallMeanPoissonSamplerTest 7 0 0 0 100% 0.005
SamplerBaseTest 2 0 0 0 100% 0.001
FastLoadedDiceRollerDiscreteSamplerTest 67 0 0 0 100% 0.072
BoxMullerLogNormalSamplerTest 1 0 0 0 100% 0
UniformLongSamplerTest 24 0 0 0 100% 0.019
ContinuousUniformSamplerTest 6 0 0 0 100% 0.006
ContinuousSamplerTest 9 0 0 0 100% 0.009
LargeMeanPoissonSamplerTest 8 0 0 0 100% 0.004
InverseTransformParetoSamplerTest 3 0 0 0 100% 0.003
MarsagliaTsangWangDiscreteSamplerTest 34 0 0 0 100% 0.052
AhrensDieterExponentialSamplerTest 4 0 0 0 100% 0.004
BoxMullerNormalisedGaussianSamplerTest 1 0 0 0 100% 0
GaussianSamplerTest 8 0 0 0 100% 0.004
LogNormalSamplerTest 4 0 0 0 100% 0.003
TSamplerTest 6 0 0 0 100% 0.004
InternalUtilsTest 8 0 0 0 100% 0.004
LevySamplerTest 4 0 0 0 100% 0.003
ZigguratSamplerTest 9 0 0 0 100% 3.224
StableSamplerTest 46 0 0 0 100% 0.134
LongSamplerTest 9 0 0 0 100% 0.01
KempSmallMeanPoissonSamplerTest 8 0 0 0 100% 0.012
DiscreteSamplerParametricTest 32 0 0 0 100% 6.561
GuideTableDiscreteSamplerTest 20 0 0 0 100% 0.017
PoissonSamplerTest 3 0 0 0 100% 0.001
InverseTransformDiscreteSamplerTest 1 0 0 0 100% 0.001
PoissonSamplerCacheTest 26 0 0 0 100% 0.023
ChengBetaSamplerTest 7 0 0 0 100% 0.007
DirichletSamplerTest 18 0 0 0 100% 0.236
ZigguratNormalizedGaussianSamplerTest 2 0 0 0 100% 0.004
DiscreteUniformSamplerTest 21 0 0 0 100% 0.009
MarsagliaNormalisedGaussianSamplerTest 2 0 0 0 100% 0.001
AliasMethodDiscreteSamplerTest 21 0 0 0 100% 0.018

Test Cases

[Summary] [Package List] [Test Cases]

GeometricSamplerTest

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

ContinuousSamplerParametricTest

testSampling(ContinuousSamplerTestData)[1] 0.134
testSampling(ContinuousSamplerTestData)[2] 0.078
testSampling(ContinuousSamplerTestData)[3] 0.071
testSampling(ContinuousSamplerTestData)[4] 0.059
testSampling(ContinuousSamplerTestData)[5] 0.047
testSampling(ContinuousSamplerTestData)[6] 0.04
testSampling(ContinuousSamplerTestData)[7] 7.834
testSampling(ContinuousSamplerTestData)[8] 0.131
testSampling(ContinuousSamplerTestData)[9] 0.153
testSampling(ContinuousSamplerTestData)[10] 0.173
testSampling(ContinuousSamplerTestData)[11] 0.22
testSampling(ContinuousSamplerTestData)[12] 0.092
testSampling(ContinuousSamplerTestData)[13] 2.974
testSampling(ContinuousSamplerTestData)[14] 0.072
testSampling(ContinuousSamplerTestData)[15] 0.068
testSampling(ContinuousSamplerTestData)[16] 0.034
testSampling(ContinuousSamplerTestData)[17] 6.302
testSampling(ContinuousSamplerTestData)[18] 3.262
testSampling(ContinuousSamplerTestData)[19] 0.084
testSampling(ContinuousSamplerTestData)[20] 0.048
testSampling(ContinuousSamplerTestData)[21] 0.105
testSampling(ContinuousSamplerTestData)[22] 0.067
testSampling(ContinuousSamplerTestData)[23] 0.132
testSampling(ContinuousSamplerTestData)[24] 0.039
testSampling(ContinuousSamplerTestData)[25] 0.034
testSampling(ContinuousSamplerTestData)[26] 4.216
testSampling(ContinuousSamplerTestData)[27] 0.092
testSampling(ContinuousSamplerTestData)[28] 0.062
testSampling(ContinuousSamplerTestData)[29] 0.087
testSampling(ContinuousSamplerTestData)[30] 0.142
testSampling(ContinuousSamplerTestData)[31] 0.057
testSampling(ContinuousSamplerTestData)[32] 0.058
testSampling(ContinuousSamplerTestData)[33] 7.238
testSampling(ContinuousSamplerTestData)[34] 2.505
testSampling(ContinuousSamplerTestData)[35] 0.055
testSampling(ContinuousSamplerTestData)[36] 0.038
testSampling(ContinuousSamplerTestData)[37] 0.028
testSampling(ContinuousSamplerTestData)[38] 0.067
testSampling(ContinuousSamplerTestData)[39] 0.04
testSampling(ContinuousSamplerTestData)[40] 0.042
testSampling(ContinuousSamplerTestData)[41] 0.143
testSampling(ContinuousSamplerTestData)[42] 0.157
testSampling(ContinuousSamplerTestData)[43] 0.099
testSampling(ContinuousSamplerTestData)[44] 0.133
testSampling(ContinuousSamplerTestData)[45] 0.141
testSampling(ContinuousSamplerTestData)[46] 7.901
testSampling(ContinuousSamplerTestData)[47] 0.087
testSampling(ContinuousSamplerTestData)[48] 0.117
testSampling(ContinuousSamplerTestData)[49] 0.128
testSampling(ContinuousSamplerTestData)[50] 0.053
testSampling(ContinuousSamplerTestData)[51] 0.041
testSampling(ContinuousSamplerTestData)[52] 0.025
testSampling(ContinuousSamplerTestData)[53] 0.227

BoxSamplerTest

testNonFiniteVertexCoordinates 0.002
testSharedStateSampler2D 0.001
testSharedStateSampler3D 0
testSharedStateSampler4D 0.001
testDimensionMismatchThrows 0
testChangedInputCoordinates2D 0
testChangedInputCoordinates3D 0
testChangedInputCoordinates4D 0.001
testDistribution2D 0.002
testDistribution3D 0.01
testDistribution4D 0.034
testExtremeValueCoordinates2D 0
testExtremeValueCoordinates3D 0.001
testExtremeValueCoordinates4D 0
testInvalidDimensionThrows 0.001

InverseTransformContinuousSamplerTest

testSharedStateSampler 0.001

DiscreteSamplerTest

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

TetrahedronSamplerTest

testChangedInputCoordinates 0.001
testNonFiniteVertexCoordinates 0.002
testExtremeValueCoordinates 0.001
testDistribution 0.006
testSharedStateSampler 0
testTetrahedronContains 0
testInvalidDimensionThrows 0.001

UnitSphereSamplerTest

testSharedStateSampler1D 0.002
testSharedStateSampler2D 0.005
testSharedStateSampler3D 0
testSharedStateSampler4D 0.001
testNextNormSquaredAfterZeroIsValid 0
testDistribution4DWithFactoryConstructor 0.256
testDistribution3DWithFactoryConstructor 0.147
testDistribution2DWithFactoryConstructor 0.029
testSharedStateSampler4DWithFactoryConstructor 0.001
testDistribution1DWithFactoryConstructor 0.003
testSharedStateSampler3DWithFactoryConstructor 0.001
testSharedStateSampler2DWithFactoryConstructor 0
testInvalidDimensionThrowsWithFactoryConstructor 0.001
testSharedStateSampler1DWithFactoryConstructor 0.001
testInvalidInverseNormalisation2D 0.001
testInvalidInverseNormalisation3D 0
testInvalidInverseNormalisation4D 0.001
testDistribution1D 0.005
testDistribution2D 0.016
testDistribution3D 0.151
testDistribution4D 0.258
testBadProvider2D 0.004
testBadProvider3D 0.003
testBadProvider4D 0.002
testInvalidDimensionThrows 0.001

AhrensDieterMarsagliaTsangGammaSamplerTest

testToString 0
testConstructorThrowsWithZeroAlpha 0.001
testConstructorThrowsWithZeroTheta 0
testSharedStateSamplerWithAlphaAboveOne 0
testSharedStateSamplerWithAlphaBelowOne 0

CollectionSamplerTest

testSharedStateSampler 0
testSamplePrecondition 0
testSampleTrivial 0.001

RejectionInversionZipfSamplerTest

testToString 0.001
testSharedStateSamplerWithZeroExponent 0
testSharedStateSampler 0
testConstructorThrowsWithNegativeExponent 0.001
testConstructorThrowsWithZeroNumberOfElements 0

PermutationSamplerTest

testSampleBoundaryCase 0
testSubSampleChiSquareTest 0.003
testShuffleNoDuplicates 0
testShuffleHead 0.001
testShuffleTail 0
testSharedStateSampler 0
testSamplePrecondition1 0.001
testSamplePrecondition2 0
testSamplePrecondition3 0
testSamplePrecondition4 0.001
testSampleChiSquareTest 0.001
testNaturalZero 0
testNatural 0.001
testSampleTrivial 0

BoxMullerGaussianSamplerTest

testConstructorThrowsWithZeroStandardDeviation 0

SmallMeanPoissonSamplerTest

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

ListSamplerTest

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

DiscreteProbabilityCollectionSamplerTest

testSampleWithProbabilityAtLastItem 0.002
testPrecondition1 0
testPrecondition2 0.001
testPrecondition3 0
testPrecondition4 0
testPrecondition5 0
testPrecondition6 0
testPrecondition7 0
testSharedStateSampler 0
testSample 2.324
testSampleUsingMap 0.001

SamplerBaseTest

testToString 0
testNextMethods 0.001

FastLoadedDiceRollerDiscreteSamplerTest

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

BoxMullerLogNormalSamplerTest

testConstructorThrowsWithZeroShape 0

UniformLongSamplerTest

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

LineSamplerTest

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

CoordinatesTest

testRequireFiniteWithMessageThrows 0.002
testRequireLengthWithMessageThrows 0.001

ContinuousUniformSamplerTest

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

ContinuousSamplerTest

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

LargeMeanPoissonSamplerTest

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

InverseTransformParetoSamplerTest

testSharedStateSampler 0
testConstructorThrowsWithZeroScale 0
testConstructorThrowsWithZeroShape 0.001

MarsagliaTsangWangDiscreteSamplerTest

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

AhrensDieterExponentialSamplerTest

testConstructorThrowsWithZeroMean 0.001
testSamplerWithZeroFromRandomGenerator 0.002
testSharedStateSampler 0
testSamplerWithOneFromRandomGenerator 0

BoxMullerNormalisedGaussianSamplerTest

testSharedStateSampler 0

CombinationSamplerTest

testNequalsZeroThrows 0.125
testUniformWithKmoreThanHalfN 0.053
testKequalsZeroThrows 0.001
testSampleIsInDomain 0.001
testSharedStateSampler 0.003
testKgreaterThanNThrows 0.002
testSampleWhenNequalsKIsNotShuffled 0.001
testNisNegativeThrows 0.001
testKisNegativeThrows 0
testUniformWithKlessThanHalfN 0.007

CompositeSamplersTest

testSharedStateDiscreteSamplerSamples 0.024
testObjectSamplerSamples 0.02
testSharedStateContinuousSamplerWithCustomFactory 0.003
testSharedStateObjectSamplerSamplesWithCustomSharedStateDiscreteSamplerFactory 0.015
testSharedStateDiscreteSamplerWithCustomFactory 0.001
testObjectSamplerSamplesWithUniformWeights 0.009
testSharedStateLongSamplerWithCustomFactory 0.001
testSharedStateLongSamplerSamples 0.017
testObjectSamplerSamplesWithVeryLargeWeights 0.018
testEmptyBuilderThrows 0.001
testInvalidWeights 0.002
testSharedStateLongSampler 0
testDiscreteSamplerSamples 0.011
testSharedStateObjectSampler 0
testNullSharedStateObjectSamplerThrows 0
testDiscreteProbabilitySampler 0.097
testObjectSamplerSamplesWithSubNormalWeights 0.015
testSharedStateContinuousSamplerSamples 0.011
testSingleSharedStateObjectSampler 0.001
testSharedStateObjectSamplerWithCustomFactory 0
testSharedStateObjectSamplerSamplesWithCustomDiscreteSamplerFactory 0.008
testSharedStateDiscreteSampler 0.001
testLongSamplerSamples 0.021
testSharedStateObjectSamplerSamples 0.01
testSharedStateContinuousSampler 0
testContinuousSamplerSamples 0.014

GaussianSamplerTest

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

LogNormalSamplerTest

testSharedStateSamplerThrowsIfUnderlyingSamplerReturnsWrongSharedState 0.001
testSharedStateSampler 0.001
testSharedStateSamplerThrowsIfUnderlyingSamplerDoesNotShareState 0
testConstructorThrowsWithZeroShape 0.001

TSamplerTest

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

InternalUtilsTest

testFactorialLogCacheSizeAboveRepresentableFactorials 0
testLogFactorialThrowsWhenNegative 0.001
testFactorialLog 0
testLogFactorialWithCacheThrowsWhenNegative 0.001
testFactorial 0
testFactorialThrowsWhenNotRepresentableAsLong 0.001
testFactorialLogCacheExpansion 0
testFactorialThrowsWhenNegative 0

LevySamplerTest

testConstructorThrowsWithNegativeScale 0
testSharedStateSampler 0
testConstructorThrowsWithZeroScale 0.001
testSupport 0.001

TriangleSamplerTest

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

ZigguratSamplerTest

testExponentialConstructorThrowsWithZeroMean 0.001
testExponentialSamplesWithQuantiles(String, Function)[1] 0.857
testExponentialSharedStateSampler 0
testGaussianSamplesWithQuantiles(String, Function)[1] 0.854
testExponentialSharedStateSamplerWithMean 0.001
testGaussianSamplesWithUniformValues(String, Function)[1] 0.713
testExponentialRecursion 0.001
testExponentialSamplesWithUniformValues(String, Function)[1] 0.792
testGaussianSharedStateSampler 0

StableSamplerTest

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

LongSamplerTest

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

KempSmallMeanPoissonSamplerTest

testConstructorThrowsWithZeroMean 0.001
testSummationTo1AtUpperBound 0
testSummationFrom1AtUpperBound 0.001
testSharedStateSampler 0
testSamplerAtUpperBounds 0.007
testConstructorThrowsWithNegativeMean 0
testConstructorThrowsWithMeanLargerThanUpperBound 0.001
testConstructorWithNaNMean 0

DiscreteSamplerParametricTest

testSampling(DiscreteSamplerTestData)[1] 1.065
testSampling(DiscreteSamplerTestData)[2] 0.099
testSampling(DiscreteSamplerTestData)[3] 0.032
testSampling(DiscreteSamplerTestData)[4] 0.067
testSampling(DiscreteSamplerTestData)[5] 0.022
testSampling(DiscreteSamplerTestData)[6] 1.492
testSampling(DiscreteSamplerTestData)[7] 2.16
testSampling(DiscreteSamplerTestData)[8] 0.059
testSampling(DiscreteSamplerTestData)[9] 0.016
testSampling(DiscreteSamplerTestData)[10] 0.019
testSampling(DiscreteSamplerTestData)[11] 0.024
testSampling(DiscreteSamplerTestData)[12] 0.347
testSampling(DiscreteSamplerTestData)[13] 0.05
testSampling(DiscreteSamplerTestData)[14] 0.039
testSampling(DiscreteSamplerTestData)[15] 0.014
testSampling(DiscreteSamplerTestData)[16] 0.331
testSampling(DiscreteSamplerTestData)[17] 0.039
testSampling(DiscreteSamplerTestData)[18] 0.046
testSampling(DiscreteSamplerTestData)[19] 0.021
testSampling(DiscreteSamplerTestData)[20] 0.024
testSampling(DiscreteSamplerTestData)[21] 0.095
testSampling(DiscreteSamplerTestData)[22] 0.093
testSampling(DiscreteSamplerTestData)[23] 0.073
testSampling(DiscreteSamplerTestData)[24] 0.021
testSampling(DiscreteSamplerTestData)[25] 0.083
testSampling(DiscreteSamplerTestData)[26] 0.072
testSampling(DiscreteSamplerTestData)[27] 0.025
testSampling(DiscreteSamplerTestData)[28] 0.014
testSampling(DiscreteSamplerTestData)[29] 0.017
testSampling(DiscreteSamplerTestData)[30] 0.017
testSampling(DiscreteSamplerTestData)[31] 0.019
testSampling(DiscreteSamplerTestData)[32] 0.029

GuideTableDiscreteSamplerTest

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

PoissonSamplerTest

testSharedStateSamplerWithSmallMean 0
testToString 0
testSharedStateSamplerWithLargeMean 0

InverseTransformDiscreteSamplerTest

testSharedStateSampler 0.001

PoissonSamplerCacheTest

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

ChengBetaSamplerTest

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

ObjectSamplerTest

testSamplesUnlimitedSize 0.002
testSamples 0.005
testSamples 0
testSamples 0.001
testSamples(int)[1] 0.017
testSamples(int)[2] 0.001
testSamples(int)[3] 0.001
testSamples(int)[4] 0.001
testSamples(int)[5] 0.001

DirichletSamplerTest

testSymmetricDistributionThrowsWithInvalidNumberOfCategories 0.001
testSymmetricDistributionThrowsWithInfiniteConcentration 0
testToString 0.001
testSymmetricDistributionThrowsWithZeroConcentration 0
testSharedStateSampler 0.001
testInvalidSampleIsIgnored 0.001
testDistributionThrowsWithZeroConcentration 0
testDistributionThrowsWithNaNConcentration 0.001
testDistributionThrowsWithInvalidNumberOfCategories 0.001
testSymmetricCaseMatchesGeneralCase 0.001
testDistributionThrowsWithInfiniteConcentration 0
testSampling1 0.101
testSampling2 0.026
testSampling3 0.036
testSampling4 0.016
testSampling5 0.04
testSharedStateSamplerForSymmetricCase 0
testSymmetricDistributionThrowsWithNaNConcentration 0.001

ZigguratNormalizedGaussianSamplerTest

testInfiniteLoop 0.003
testSharedStateSampler 0

DiscreteUniformSamplerTest

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

MarsagliaNormalisedGaussianSamplerTest

testSamplePairIsRejected 0.001
testSharedStateSampler 0

AliasMethodDiscreteSamplerTest

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

UnitBallSamplerTest

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