类 RandomDataGeneratorTest
java.lang.Object
org.hipparchus.random.RandomDataGeneratorTest
- 直接已知子类:
-
RandomGeneratorAbstractTest
RandomDataGenerator类的测试用例。
-
字段概要
修饰符和类型字段说明protected final double[]
protected final int
protected RandomDataGenerator
protected final long
-
构造器概要
-
方法概要
修饰符和类型方法说明void
checkNextPoissonConsistency
(double mean) 验证nextPoisson(mean)生成的值的经验分布与PoissonDistributionImpl一致,方法是生成1000个值,计算观察到的值的分组频率分布,并将此分布与使用PoissonDistributionImpl计算的相应预期分布进行比较。void
测试重新种子化、算法/提供程序游戏void
void
void
void
void
测试nextExponential()的失败模式和分布void
void
void
测试nextGaussian()的失败模式和分布void
测试nextHex()的离散度和失败模式void
void
void
void
void
void
void
void
void
void
void
void
void
nextPermutation的测试void
确保随机Poisson(4)的经验分布具有P(X <= 5)接近实际累积泊松概率,并且当均值为非正时,nextPoisson会失败。void
void
nextSample()从集合中抽样的测试void
void
void
void
void
void
void
void
测试nextUniform的独占端点void
void
void
void
void
void
void
-
字段详细资料
-
smallSampleSize
protected final long smallSampleSize- 另请参阅:
-
expected
protected final double[] expected -
largeSampleSize
protected final int largeSampleSize- 另请参阅:
-
randomData
-
-
构造器详细资料
-
RandomDataGeneratorTest
public RandomDataGeneratorTest()
-
-
方法详细资料
-
testNextIntExtremeValues
public void testNextIntExtremeValues() -
testNextLongExtremeValues
public void testNextLongExtremeValues() -
testNextUniformExtremeValues
public void testNextUniformExtremeValues() -
testNextIntIAE
public void testNextIntIAE() -
testNextIntNegativeToPositiveRange
public void testNextIntNegativeToPositiveRange() -
testNextIntNegativeRange
public void testNextIntNegativeRange() -
testNextIntPositiveRange
public void testNextIntPositiveRange() -
testNextIntWideRange
public void testNextIntWideRange() -
testNextLongIAE
public void testNextLongIAE() -
testNextLongNegativeToPositiveRange
public void testNextLongNegativeToPositiveRange() -
testNextLongNegativeRange
public void testNextLongNegativeRange() -
testNextLongPositiveRange
public void testNextLongPositiveRange() -
testNextLongWideRange
public void testNextLongWideRange() -
testNextPoisson
public void testNextPoisson()确保随机Poisson(4)的经验分布具有P(X <= 5)接近实际累积泊松概率,并且当均值为非正时,nextPoisson会失败。 -
testNextPoissonConsistency
public void testNextPoissonConsistency() -
checkNextPoissonConsistency
public void checkNextPoissonConsistency(double mean) 验证nextPoisson(mean)生成的值的经验分布与PoissonDistributionImpl一致,方法是生成1000个值,计算观察到的值的分组频率分布,并将此分布与使用PoissonDistributionImpl计算的相应预期分布进行比较。使用卡方拟合度检验来评估零假设,即分布相同。如果可以以置信度1 - alpha拒绝零假设,则检查失败。 -
testNextHex
public void testNextHex()测试nextHex()的离散度和失败模式 -
testNextUniformIAE
public void testNextUniformIAE() -
testNextUniformUniformPositiveBounds
public void testNextUniformUniformPositiveBounds() -
testNextUniformUniformNegativeToPositiveBounds
public void testNextUniformUniformNegativeToPositiveBounds() -
testNextUniformUniformNegaiveBounds
public void testNextUniformUniformNegaiveBounds() -
testNextUniformUniformMaximalInterval
public void testNextUniformUniformMaximalInterval() -
testNextUniformExclusiveEndpoints
public void testNextUniformExclusiveEndpoints()测试nextUniform的独占端点 -
testNextGaussian
public void testNextGaussian()测试nextGaussian()的失败模式和分布 -
testNextExponential
public void testNextExponential()测试nextExponential()的失败模式和分布 -
testConfig
public void testConfig()测试重新种子化、算法/提供程序游戏 -
testNextSample
public void testNextSample()nextSample()从集合中抽样的测试 -
testNextPermutation
public void testNextPermutation()nextPermutation的测试 -
testNextBeta
public void testNextBeta() -
testNextGamma
public void testNextGamma() -
testNextGamma2
public void testNextGamma2() -
testNextBeta2
public void testNextBeta2() -
testNextZipf
public void testNextZipf() -
testNextSampleWithReplacement
public void testNextSampleWithReplacement() -
testNextSampleWithReplacementPointMass
public void testNextSampleWithReplacementPointMass() -
testNextSampleWithReplacementAllZeroWeights
public void testNextSampleWithReplacementAllZeroWeights() -
testNextSampleWithReplacementNegativeWeights
public void testNextSampleWithReplacementNegativeWeights() -
testNextSampleWithReplacement0SampleSize
public void testNextSampleWithReplacement0SampleSize() -
testNextSampleWithReplacementNegativeSampleSize
public void testNextSampleWithReplacementNegativeSampleSize() -
testNextSampleWithReplacementNaNWeights
public void testNextSampleWithReplacementNaNWeights() -
testNextDeviateEnumeratedIntegerDistribution
public void testNextDeviateEnumeratedIntegerDistribution() -
testNextDeviateEnumeratedRealDistribution
public void testNextDeviateEnumeratedRealDistribution()
-