Exemplo 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);
 }
Exemplo n.º 2
0
 private RandomGenerator()
 {
     gaussian = new BoxMullerTransformation(this);
 }