1 /*
2 * Test.java
3 *
4 * Created on March 8, 2005, 8:26 PM
5 */
6
7 package org.mrd.random;
8
9 /***
10 *
11 * @author administrator
12 */
13 public class Test {
14
15 /*** Creates a new instance of Test */
16 public Test() {
17 }
18
19 /***
20 * @param args the command line arguments
21 */
22 public static void main(String[] args) {
23 LimitedBeta beta =null;
24
25 System.out.println("beta = new LimitedBeta(.1,.28,new cern.jet.random.engine.MersenneTwister(),true,true);");
26
27 beta = new LimitedBeta(.1,.28,new cern.jet.random.engine.MersenneTwister(),true,true);
28
29
30 for(int i = 0 ; i < 20 ; i++){
31 System.out.println(beta.nextDouble());
32 }
33
34 System.out.println("beta = new LimitedBeta(.9,.1,new cern.jet.random.engine.MersenneTwister(),true,false);");
35
36 beta = new LimitedBeta(.9,.1,new cern.jet.random.engine.MersenneTwister(),true,false);
37
38 for(int i = 0 ; i < 20 ; i++){
39 System.out.println(beta.nextDouble());
40 }
41
42 System.out.println("beta = new LimitedBeta(.000000001,.000000001,new cern.jet.random.engine.MersenneTwister(),true,true);");
43
44
45 beta = new LimitedBeta(.000000001,.000000001,new cern.jet.random.engine.MersenneTwister(),true,true);
46
47 for(int i = 0 ; i < 20 ; i++){
48 System.out.println(beta.nextDouble());
49 }
50
51 System.out.println("beta = new LimitedBeta(0,1,new cern.jet.random.engine.MersenneTwister(),true,true);");
52
53 beta = new LimitedBeta(0,1,new cern.jet.random.engine.MersenneTwister(),true,true);
54
55 for(int i = 0 ; i < 20 ; i++){
56 System.out.println(beta.nextDouble());
57 }
58
59 System.out.println("beta = new LimitedBeta(1,0,new cern.jet.random.engine.MersenneTwister(),true,true);");
60
61
62 beta = new LimitedBeta(1,0,new cern.jet.random.engine.MersenneTwister(),true,true);
63
64 for(int i = 0 ; i < 20 ; i++){
65 System.out.println(beta.nextDouble());
66 }
67
68 System.out.println("beta = new LimitedBeta(1,0,new cern.jet.random.engine.MersenneTwister(),false,false);");
69
70 beta = new LimitedBeta(1,0,new cern.jet.random.engine.MersenneTwister(),false,false);
71
72 for(int i = 0 ; i < 20 ; i++){
73 System.out.println(beta.nextDouble());
74 }
75
76 System.out.println("beta = new LimitedBeta(0,1,new cern.jet.random.engine.MersenneTwister(),false,false);");
77
78 beta = new LimitedBeta(0,1,new cern.jet.random.engine.MersenneTwister(),false,false);
79
80 for(int i = 0 ; i < 20 ; i++){
81 System.out.println(beta.nextDouble());
82 }
83
84 System.out.println("beta = new LimitedBeta(.001,1,new cern.jet.random.engine.MersenneTwister(),false,false);");
85
86 beta = new LimitedBeta(.001,1,new cern.jet.random.engine.MersenneTwister(),false,false);
87
88 for(int i = 0 ; i < 20 ; i++){
89 System.out.println(beta.nextDouble());
90 }
91
92 System.out.println("beta = new LimitedBeta(0,0,new cern.jet.random.engine.MersenneTwister(),false,false);");
93 beta = new LimitedBeta(0,0,new cern.jet.random.engine.MersenneTwister(),false,false);
94
95 for(int i = 0 ; i < 20 ; i++){
96 System.out.println(beta.nextDouble());
97 }
98
99 }
100
101 }
This page was automatically generated by Maven