Esempio n. 1
0
 public void TestBoxMullerTransformationClamped()
 {
     BoxMullerTransformation boxMullerTransformation = new BoxMullerTransformation(RandomGenerator.GetInstance());
     double[] values = Enumerable.Range(0, 1000000).Select(i => boxMullerTransformation.NextBoundedGaussian(3,2,10)).ToArray();
     ShapiroWilkTest test = new ShapiroWilkTest(values);
     Assert.True(test.Significant);
 }
Esempio n. 2
0
 private RandomGenerator()
 {
     gaussian = new BoxMullerTransformation(this);
 }