17 type(display_type) :: disp
18 integer(IK) :: nsam1, nsam2
19 integer(IK) :: itry, ntry
= 10
23 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
24 call disp%show(
"! Compute the KS probability of sample originating from a Uniform distribution in range `[0, 1)`.")
25 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
30 integer(IK),
allocatable :: iweight1(:)
31 real(TKG),
allocatable :: rweight1(:)
32 real(TKG),
allocatable :: sample1(:)
33 real(TKG) :: probKS, quanKS, statKS
35 call disp%show(
"nsam1 = getUnifRand(1, 10)")
37 call disp%show(
"sample1 = getUnifRand(0., 1., nsam1)")
41 call disp%show(
"statKS = getDisKolm(sample1) ! assuming unweighted samples.")
45 call disp%show(
"call setProbKS(probKS, quanKS, statKS, nsam1) ! assuming unweighted samples.")
46 call setProbKS(probKS, quanKS, statKS, nsam1)
50 call disp%show(
"iweight1 = getUnifRand(1, 9, nsam1)")
54 call disp%show(
"rweight1 = iweight1")
56 call disp%show(
"statKS = getDisKolm(sample1, iweight1, sum(iweight1))")
57 statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
60 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(iweight1))")
61 call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
64 call disp%show(
"statKS = getDisKolm(sample1, rweight1, sum(rweight1))")
65 statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
68 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(rweight1), sum(rweight1**2))")
69 call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
77 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
78 call disp%show(
"! Compute the KS probability of a sample against a Normal distribution.")
79 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
84 integer(IK),
allocatable :: iweight1(:)
85 real(TKG),
allocatable :: rweight1(:)
86 real(TKG),
allocatable :: sample1(:)
87 real(TKG) :: probKS, quanKS, statKS
89 call disp%show(
"nsam1 = getUnifRand(5, 10)")
91 call disp%show(
"sample1 = getNormRand(mean = getFilled(0., nsam1))")
95 call disp%show(
"statKS = getDisKolm(sample1, getNormCDF_RKS) ! assuming unweighted samples.")
99 call disp%show(
"call setProbKS(probKS, quanKS, statKS, nsam1) ! assuming unweighted samples.")
100 call setProbKS(probKS, quanKS, statKS, nsam1)
104 call disp%show(
"iweight1 = getUnifRand(1, 9, nsam1)")
108 call disp%show(
"rweight1 = iweight1")
110 call disp%show(
"statKS = getDisKolm(sample1, iweight1, sum(iweight1), getNormCDF_RKS)")
111 statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
114 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(iweight1))")
115 call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
118 call disp%show(
"statKS = getDisKolm(sample1, rweight1, sum(rweight1), getNormCDF_RKS)")
119 statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
122 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(rweight1), sum(rweight1**2))")
123 call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
131 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
132 call disp%show(
"! Compute the two sample KS probability.")
133 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
138 integer(IK),
allocatable :: iweight1(:), iweight2(:)
139 real(TKG),
allocatable :: rweight1(:), rweight2(:)
140 real(TKG),
allocatable :: sample1(:), sample2(:)
141 real(TKG) :: probKS, quanKS, statKS
143 call disp%show(
"nsam1 = getUnifRand(1, 10); nsam2 = getUnifRand(1, 10)")
145 call disp%show(
"sample1 = getUnifRand(0., 1., nsam1)")
149 call disp%show(
"sample2 = getUnifRand(0., 1., nsam2)")
153 call disp%show(
"statKS = getDisKolm(sample1, sample2) ! assuming unweighted samples.")
157 call disp%show(
"call setProbKS(probKS, quanKS, statKS, nsam1, nsam2) ! assuming unweighted samples.")
158 call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
162 call disp%show(
"iweight1 = getUnifRand(1, 9, nsam1)")
166 call disp%show(
"rweight1 = iweight1")
168 call disp%show(
"statKS = getDisKolm(sample1, iweight1, sum(iweight1), sample2)")
169 statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
172 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(iweight1), nsam2)")
173 call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
176 call disp%show(
"statKS = getDisKolm(sample1, rweight1, sum(rweight1), sample2)")
177 statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
180 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(rweight1), nsam2, sum(rweight1**2))")
181 call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
185 call disp%show(
"iweight2 = getUnifRand(1, 9, nsam2)")
189 call disp%show(
"rweight2 = iweight2")
191 call disp%show(
"statKS = getDisKolm(sample1, iweight1, sum(iweight1), sample2, iweight2, sum(iweight2))")
192 statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
195 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(iweight1), sum(iweight2))")
196 call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
199 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(rweight1), sum(iweight2), sum(rweight1**2))")
200 call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
203 call disp%show(
"statKS = getDisKolm(sample1, rweight1, sum(rweight1), sample2, rweight2, sum(rweight2))")
204 statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
207 call disp%show(
"call setProbKS(probKS, quanKS, statKS, sum(rweight1), sum(rweight2), sum(rweight1**2), sum(rweight2**2))")
208 call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
217 function getNormCDF_RKS(x)
result(cdf)
220 real(RKG),
intent(in) :: x
225 function getUnifCDF_RKS(x)
result(cdf)
228 real(RKG),
intent(in) :: x
Generate and return an array of the specified rank and shape of arbitrary intrinsic type and kind wit...
Allocate or resize (shrink or expand) an input allocatable scalar string or array of rank 1....
Generate and return the sorted elements of the input scalar string or contiguous vector in ascending ...
Generate an equally-weighted (verbose or flattened) array of the input weighted array of rank 1 or 2.
Generate and return the Cumulative Distribution Function (CDF) of the univariate Normal distribution.
Generate and return a scalar or array of arbitrary rank of random values from the univariate Normal d...
Generate and return the Cumulative Distribution Function (CDF) of a univariate Standard Uniform distr...
Generate and return a scalar or a contiguous array of rank 1 of length s1 of randomly uniformly distr...
Generate and return the Kolmogorov distance of a sample1 of size nsam1 from another sample sample2 of...
This is a generic method of the derived type display_type with pass attribute.
This is a generic method of the derived type display_type with pass attribute.
This module contains procedures and generic interfaces for convenient allocation and filling of array...
This module contains procedures and generic interfaces for resizing allocatable arrays of various typ...
This module contains procedures and generic interfaces for various sorting tasks.
This module contains procedures and generic interfaces for flattening (duplicating the elements of) a...
This module contains classes and procedures for computing various statistical quantities related to t...
This module contains classes and procedures for computing various statistical quantities related to t...
This module contains classes and procedures for computing the Kolmogorov statistical distance.
This module contains classes and procedures for input/output (IO) or generic display operations on st...
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
integer, parameter RKS
The single-precision real kind in Fortran mode. On most platforms, this is an 32-bit real kind.
Generate and return an object of type display_type.
6nsam1
= getUnifRand(
1,
10)
7sample1
= getUnifRand(
0.,
1., nsam1)
9+0.462093949E-1,
+0.710788310,
+0.936869979,
+0.436532557,
+0.424030721,
+0.132807255,
+0.789889216,
+0.317272782
13call setProbKS(probKS, quanKS, statKS, nsam1)
15+0.909156799,
+0.563012123
17iweight1
= getUnifRand(
1,
9, nsam1)
19+5,
+2,
+3,
+8,
+8,
+8,
+5,
+4
21statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
24call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
26+0.109374523E-3,
+2.21517730
27statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
30call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
32+0.368361235,
+0.918000698
34nsam1
= getUnifRand(
1,
10)
35sample1
= getUnifRand(
0.,
1., nsam1)
37+0.834564388,
+0.625491440,
+0.536503911,
+0.147221684,
+0.173407614,
+0.291324019
41call setProbKS(probKS, quanKS, statKS, nsam1)
43+0.927204132,
+0.545561850
45iweight1
= getUnifRand(
1,
9, nsam1)
49statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
52call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
54+0.123918056E-3,
+2.20100307
55statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
58call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
60+0.349074960,
+0.932790995
62nsam1
= getUnifRand(
1,
10)
63sample1
= getUnifRand(
0.,
1., nsam1)
65+0.293232441,
+0.768743753E-1,
+0.454477906,
+0.260488391E-1,
+0.170449793,
+0.930680454,
+0.751234889
69call setProbKS(probKS, quanKS, statKS, nsam1)
71+0.575362146,
+0.780987680
73iweight1
= getUnifRand(
1,
9, nsam1)
75+7,
+2,
+4,
+3,
+7,
+3,
+2
77statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
80call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
82+0.312626362E-3,
+2.09327364
83statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
86call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
88+0.296584189,
+0.976031005
90nsam1
= getUnifRand(
1,
10)
91sample1
= getUnifRand(
0.,
1., nsam1)
93+0.138544738,
+0.329213619,
+0.922741592,
+0.848024964,
+0.162009537,
+0.654602826,
+0.239861608E-1,
+0.646164477,
+0.934737682,
+0.390312374
97call setProbKS(probKS, quanKS, statKS, nsam1)
99+0.969406486,
+0.491008103
101iweight1
= getUnifRand(
1,
9, nsam1)
103+5,
+9,
+3,
+7,
+1,
+3,
+7,
+8,
+3,
+7
105statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
108call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
110+0.133600116,
+1.16313219
111statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
114call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
116+0.978896916,
+0.472450554
118nsam1
= getUnifRand(
1,
10)
119sample1
= getUnifRand(
0.,
1., nsam1)
121+0.557841420,
+0.824282885,
+0.640297532,
+0.896061838,
+0.654752910,
+0.478424013,
+0.295103192,
+0.550536036
125call setProbKS(probKS, quanKS, statKS, nsam1)
127+0.214921236,
+1.05578983
129iweight1
= getUnifRand(
1,
9, nsam1)
131+8,
+5,
+3,
+1,
+6,
+4,
+8,
+8
133statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
136call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
138+0.815331936E-3,
+1.97548366
139statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
142call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
144+0.531636715,
+0.807718694
146nsam1
= getUnifRand(
1,
10)
147sample1
= getUnifRand(
0.,
1., nsam1)
149+0.394541562,
+0.453168809,
+0.497177958,
+0.448671341,
+0.876755595,
+0.672079384,
+0.749120057,
+0.823256135
153call setProbKS(probKS, quanKS, statKS, nsam1)
155+0.124258935,
+1.17862105
157iweight1
= getUnifRand(
1,
9, nsam1)
159+8,
+1,
+9,
+9,
+7,
+8,
+5,
+7
161statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
164call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
166+0.596046448E-7,
+2.95252728
167statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
170call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
172+0.169451952,
+1.11079335
174nsam1
= getUnifRand(
1,
10)
175sample1
= getUnifRand(
0.,
1., nsam1)
177+0.781156957,
+0.364391625,
+0.395387113
181call setProbKS(probKS, quanKS, statKS, nsam1)
183+0.714539230,
+0.698013783
185iweight1
= getUnifRand(
1,
9, nsam1)
189statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
192call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
194+0.157906413E-1,
+1.55587375
195statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
198call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
200+0.804400861,
+0.641927123
202nsam1
= getUnifRand(
1,
10)
203sample1
= getUnifRand(
0.,
1., nsam1)
205+0.977708399,
+0.376907170,
+0.608141720,
+0.136100054,
+0.681608438,
+0.369262159,
+0.698377192
209call setProbKS(probKS, quanKS, statKS, nsam1)
211+0.813950419,
+0.635592937
213iweight1
= getUnifRand(
1,
9, nsam1)
215+1,
+8,
+5,
+9,
+9,
+4,
+6
217statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
220call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
222+0.231826305E-2,
+1.83848906
223statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
226call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
228+0.685740709,
+0.715238631
230nsam1
= getUnifRand(
1,
10)
231sample1
= getUnifRand(
0.,
1., nsam1)
233+0.328853607,
+0.128225565,
+0.706415117,
+0.763041019,
+0.327821493
237call setProbKS(probKS, quanKS, statKS, nsam1)
239+0.788631976,
+0.652177989
241iweight1
= getUnifRand(
1,
9, nsam1)
245statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
248call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
250+0.743635893E-1,
+1.28294277
251statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
254call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
256+0.915648341,
+0.556967616
258nsam1
= getUnifRand(
1,
10)
259sample1
= getUnifRand(
0.,
1., nsam1)
261+0.706836164,
+0.897259057,
+0.610983253,
+0.574858725,
+0.234868765,
+0.887131929,
+0.552479744,
+0.856926322
265call setProbKS(probKS, quanKS, statKS, nsam1)
267+0.766536593E-1,
+1.27701783
269iweight1
= getUnifRand(
1,
9, nsam1)
271+2,
+2,
+2,
+7,
+2,
+7,
+8,
+5
273statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
276call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
278+0.596046448E-7,
+2.99910307
279statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
282call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
284+0.686516762E-1,
+1.29842520
291nsam1
= getUnifRand(
5,
10)
292sample1
= getNormRand(mean
= getFilled(
0., nsam1))
294-1.07710052,
+0.579971410E-1,
-0.901451886,
+1.10311115,
-1.61663270,
-0.316098779,
-0.820439756,
-0.121743955,
-0.356857955
298call setProbKS(probKS, quanKS, statKS, nsam1)
300+0.138987303,
+1.15459597
302iweight1
= getUnifRand(
1,
9, nsam1)
304+7,
+4,
+9,
+3,
+1,
+5,
+3,
+9,
+7
306statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
309call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
311+0.596046448E-7,
+2.92718124
312statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
315call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
317+0.124272406,
+1.17859805
319nsam1
= getUnifRand(
5,
10)
320sample1
= getNormRand(mean
= getFilled(
0., nsam1))
322-0.738163173,
-0.929830909,
+0.182129905,
-0.211889341,
-1.24427760,
+0.462930560,
+1.45061707,
+0.964271069
326call setProbKS(probKS, quanKS, statKS, nsam1)
328+0.992069840,
+0.432540745
330iweight1
= getUnifRand(
1,
9, nsam1)
332+5,
+7,
+3,
+2,
+5,
+4,
+7,
+4
334statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
337call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
339+0.342314243E-1,
+1.42614055
340statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
343call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
345+0.795798063,
+0.647549391
347nsam1
= getUnifRand(
5,
10)
348sample1
= getNormRand(mean
= getFilled(
0., nsam1))
350+0.452653378,
+0.189940915,
-0.288046956,
-0.757188424E-1,
-0.840262175E-1,
-0.372982621,
+0.467030376,
+1.88693345
354call setProbKS(probKS, quanKS, statKS, nsam1)
356+0.211814046,
+1.05924523
358iweight1
= getUnifRand(
1,
9, nsam1)
360+2,
+7,
+1,
+4,
+3,
+8,
+5,
+8
362statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
365call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
367+0.919699669E-4,
+2.23465896
368statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
371call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
373+0.336406946,
+0.942799389
375nsam1
= getUnifRand(
5,
10)
376sample1
= getNormRand(mean
= getFilled(
0., nsam1))
378-1.13216770,
+0.180436075,
+2.22999048,
-0.244090948E-1,
-0.528654575
382call setProbKS(probKS, quanKS, statKS, nsam1)
384+0.923444092,
+0.549373984
386iweight1
= getUnifRand(
1,
9, nsam1)
390statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
393call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
395+0.368086696E-1,
+1.41335821
396statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
399call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
401+0.823685944,
+0.629021764
403nsam1
= getUnifRand(
5,
10)
404sample1
= getNormRand(mean
= getFilled(
0., nsam1))
406+0.721646845,
-0.920135617,
-1.24234748,
+0.281262279,
+0.128498092
410call setProbKS(probKS, quanKS, statKS, nsam1)
412+0.906021237,
+0.565851748
414iweight1
= getUnifRand(
1,
9, nsam1)
418statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
421call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
423+0.112553596,
+1.19943631
424statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
427call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
429+0.969384074,
+0.491047144
431nsam1
= getUnifRand(
5,
10)
432sample1
= getNormRand(mean
= getFilled(
0., nsam1))
434+1.39941919,
+0.785788119,
+1.18587971,
-0.974316239,
+0.325524300,
+1.21735024,
+1.01278782,
+1.38540924,
+0.740205050,
+0.180610251E-1
438call setProbKS(probKS, quanKS, statKS, nsam1)
440+0.153526664E-1,
+1.56038666
442iweight1
= getUnifRand(
1,
9, nsam1)
444+1,
+6,
+9,
+3,
+4,
+8,
+7,
+8,
+8,
+6
446statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
449call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
451+0.00000000,
+4.36360741
452statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
455call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
457+0.583142042E-2,
+1.70845556
459nsam1
= getUnifRand(
5,
10)
460sample1
= getNormRand(mean
= getFilled(
0., nsam1))
462-0.939637303,
-0.958494365,
+0.678141475,
+0.662435889,
+0.447554529,
-0.286700934,
-1.01861858,
-0.678163841E-1,
+0.589176044E-1
466call setProbKS(probKS, quanKS, statKS, nsam1)
468+0.567890644,
+0.785508215
470iweight1
= getUnifRand(
1,
9, nsam1)
472+3,
+3,
+9,
+8,
+4,
+8,
+1,
+5,
+2
474statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
477call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
479+0.777691603E-2,
+1.66579497
480statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
483call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
485+0.731137514,
+0.687982202
487nsam1
= getUnifRand(
5,
10)
488sample1
= getNormRand(mean
= getFilled(
0., nsam1))
490+0.633937418,
+1.09282386,
-1.02886736,
-0.984259009,
-0.370697379,
+0.737456322,
-0.786807165E-1
494call setProbKS(probKS, quanKS, statKS, nsam1)
496+0.982207775,
+0.464642406
498iweight1
= getUnifRand(
1,
9, nsam1)
500+7,
+1,
+1,
+6,
+3,
+9,
+8
502statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
505call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
507+0.527819991E-1,
+1.34809387
508statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
511call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
513+0.932908416,
+0.539564669
515nsam1
= getUnifRand(
5,
10)
516sample1
= getNormRand(mean
= getFilled(
0., nsam1))
518-1.33879030,
-0.416459560,
+0.756268799,
-0.151113719,
-0.556740284
522call setProbKS(probKS, quanKS, statKS, nsam1)
524+0.441297233,
+0.866031170
526iweight1
= getUnifRand(
1,
9, nsam1)
530statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
533call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
535+0.100362301E-2,
+1.94901276
536statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
539call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
541+0.495421350,
+0.830491364
543nsam1
= getUnifRand(
5,
10)
544sample1
= getNormRand(mean
= getFilled(
0., nsam1))
546+1.13246191,
-0.163309902,
+1.45164311,
-1.37653434,
+0.634082377,
-0.925304666E-1,
-0.431567222,
+0.370602429,
+0.959321260E-1
550call setProbKS(probKS, quanKS, statKS, nsam1)
552+0.710373282,
+0.700517714
554iweight1
= getUnifRand(
1,
9, nsam1)
556+1,
+8,
+9,
+5,
+8,
+9,
+1,
+2,
+8
558statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
561call setProbKS(probKS, quanKS, statKS,
sum(iweight1))
563+0.461935997E-4,
+2.31032252
564statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
567call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight1
**2))
569+0.425611079,
+0.876755834
576nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
577sample1
= getUnifRand(
0.,
1., nsam1)
579+0.729944110E-1,
+0.292358339,
+0.850409448,
+0.535985529,
+0.775059819,
+0.838557482,
+0.534521818
580sample2
= getUnifRand(
0.,
1., nsam2)
582+0.151084900,
+0.442842245E-1,
+0.606431603,
+0.657666087,
+0.712000012,
+0.346039116
586call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
588+0.468385160,
+0.847985268
590iweight1
= getUnifRand(
1,
9, nsam1)
592+7,
+6,
+2,
+5,
+9,
+7,
+6
594statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
597call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
599+0.216559172,
+1.05398381
600statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
603call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
605+0.496777236,
+0.829626024
607iweight2
= getUnifRand(
1,
9, nsam2)
609+5,
+3,
+4,
+5,
+4,
+8
611statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
614call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
616+0.232851505E-2,
+1.83788955
617call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
619+0.222841144,
+1.04715168
620statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
623call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
625+0.526714444,
+0.810775459
627nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
628sample1
= getUnifRand(
0.,
1., nsam1)
630+0.182802260,
+0.435226500,
+0.342259824,
+0.848885238,
+0.793749094E-2,
+0.186996460E-1,
+0.792677462,
+0.124009192,
+0.517213523
631sample2
= getUnifRand(
0.,
1., nsam2)
633+0.914154053E-1,
+0.311941445,
+0.689440489
637call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
639+0.998904228,
+0.376296341
641iweight1
= getUnifRand(
1,
9, nsam1)
643+1,
+6,
+8,
+1,
+2,
+1,
+9,
+5,
+8
645statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
648call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
650+0.495091140,
+0.830702305
651statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
654call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
656+0.674469590,
+0.721939981
658iweight2
= getUnifRand(
1,
9, nsam2)
662statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
665call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
667+0.989437103E-5,
+2.47149301
668call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
670+0.232552886E-1,
+1.49237537
671statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
674call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
676+0.284801602,
+0.986456454
678nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
679sample1
= getUnifRand(
0.,
1., nsam1)
681+0.115207791,
+0.632531166,
+0.222090781,
+0.622100115,
+0.260065496,
+0.874881208,
+0.281625092,
+0.766614556
682sample2
= getUnifRand(
0.,
1., nsam2)
684+0.684771240,
+0.890695155,
+0.632822871
688call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
690+0.862641931E-1,
+1.25367618
692iweight1
= getUnifRand(
1,
9, nsam1)
694+4,
+4,
+1,
+8,
+4,
+5,
+3,
+2
696statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
699call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
701+0.344915986E-1,
+1.42481267
702statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
705call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
707+0.844048858E-1,
+1.25801468
709iweight2
= getUnifRand(
1,
9, nsam2)
713statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
716call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
718+0.417232513E-6,
+2.77490282
719call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
721+0.260990858E-2,
+1.82230318
722statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
725call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
727+0.108509362,
+1.20704317
729nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
730sample1
= getUnifRand(
0.,
1., nsam1)
732+0.681682706,
+0.474893093,
+0.400363803E-1,
+0.173177540,
+0.708695829,
+0.401317418,
+0.806037784,
+0.879518330,
+0.425145328
733sample2
= getUnifRand(
0.,
1., nsam2)
735+0.179218054E-1,
+0.613272190E-3,
+0.713434100,
+0.284566820,
+0.278666437,
+0.944865644,
+0.830909371,
+0.517890036,
+0.420068920
739call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
741+0.957474530,
+0.509594440
743iweight1
= getUnifRand(
1,
9, nsam1)
745+9,
+8,
+6,
+2,
+8,
+7,
+3,
+2,
+3
747statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
750call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
752+0.529327154,
+0.809151530
753statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
756call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
758+0.858717918,
+0.604166687
760iweight2
= getUnifRand(
1,
9, nsam2)
762+7,
+3,
+3,
+5,
+7,
+2,
+2,
+9,
+3
764statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
767call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
769+0.323653221E-2,
+1.79254079
770call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
772+0.296280742,
+0.976295710
773statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
776call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
778+0.604132056,
+0.763716221
780nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
781sample1
= getUnifRand(
0.,
1., nsam1)
783+0.412214339,
+0.821229756
784sample2
= getUnifRand(
0.,
1., nsam2)
786+0.830083013,
+0.111075819,
+0.265309751,
+0.837992907,
+0.828698277,
+0.939627945,
+0.193344474
790call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
792+0.493583679,
+0.831665814
794iweight1
= getUnifRand(
1,
9, nsam1)
798statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
801call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
803+0.839494467E-1,
+1.25908971
804statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
807call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
809+0.553744972,
+0.794115961
811iweight2
= getUnifRand(
1,
9, nsam2)
813+1,
+5,
+7,
+2,
+9,
+5,
+2
815statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
818call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
820+0.122885108E-1,
+1.59565651
821call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
823+0.521783650,
+0.813848794
824statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
827call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
829+0.641955614,
+0.741223812
831nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
832sample1
= getUnifRand(
0.,
1., nsam1)
834+0.188365698,
+0.630830526E-1,
+0.873363793,
+0.343774021,
+0.653704464,
+0.884383857,
+0.103310764,
+0.590547383
835sample2
= getUnifRand(
0.,
1., nsam2)
837+0.850090504,
+0.526823997
841call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
843+0.650872827,
+0.735936821
845iweight1
= getUnifRand(
1,
9, nsam1)
847+2,
+8,
+8,
+5,
+9,
+5,
+9,
+3
849statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
852call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
854+0.582638144,
+0.776600718
855statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
858call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
860+0.692809105,
+0.711026847
862iweight2
= getUnifRand(
1,
9, nsam2)
866statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
869call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
871+0.237292647E-1,
+1.48899150
872call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
874+0.201473296,
+1.07103217
875statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
878call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
880+0.797627270,
+0.646360159
882nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
883sample1
= getUnifRand(
0.,
1., nsam1)
885+0.267207086,
+0.866126001,
+0.260619998,
+0.330209136,
+0.202800035E-1,
+0.448052049
886sample2
= getUnifRand(
0.,
1., nsam2)
888+0.972234368,
+0.103491545,
+0.596077502,
+0.575129926
892call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
894+0.254147887,
+1.01511562
896iweight1
= getUnifRand(
1,
9, nsam1)
898+1,
+9,
+3,
+4,
+2,
+4
900statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
903call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
905+0.666718602,
+0.726540804
906statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
909call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
911+0.885901511,
+0.583048105
913iweight2
= getUnifRand(
1,
9, nsam2)
917statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
920call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
922+0.559325814E-1,
+1.33729839
923call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
925+0.573691070,
+0.781997323
926statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
929call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
931+0.850094080,
+0.610490978
933nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
934sample1
= getUnifRand(
0.,
1., nsam1)
936+0.471541286,
+0.970145047,
+0.117306292,
+0.335978866E-1,
+0.179242313
937sample2
= getUnifRand(
0.,
1., nsam2)
939+0.813838899,
+0.501815140,
+0.301373541,
+0.571858943,
+0.141342640,
+0.712355733
943call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
945+0.453609407,
+0.857758522
947iweight1
= getUnifRand(
1,
9, nsam1)
951statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
954call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
956+0.590751171E-1,
+1.32703936
957statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
960call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
962+0.284989536,
+0.986287832
964iweight2
= getUnifRand(
1,
9, nsam2)
966+5,
+5,
+6,
+1,
+8,
+3
968statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
971call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
973+0.251054764E-3,
+2.11931229
974call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
976+0.129963994,
+1.16905308
977statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
980call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
982+0.327440262,
+0.950036883
984nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
985sample1
= getUnifRand(
0.,
1., nsam1)
987+0.702799737,
+0.288385153E-2
988sample2
= getUnifRand(
0.,
1., nsam2)
990+0.646555543,
+0.275221169,
+0.676584899,
+0.113600492E-2,
+0.559577525,
+0.732959569,
+0.301678061,
+0.673682570
994call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
996+0.920842350,
+0.551952600
998iweight1
= getUnifRand(
1,
9, nsam1)
1002statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
1005call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
1007+0.258556008,
+1.01084447
1008statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
1011call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
1013+0.871370435,
+0.594585121
1015iweight2
= getUnifRand(
1,
9, nsam2)
1017+4,
+4,
+4,
+2,
+1,
+4,
+2,
+9
1019statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
1022call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
1024+0.413758755E-1,
+1.39251494
1025call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
1027+0.817562938,
+0.633168757
1028statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
1031call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
1033+0.892788172,
+0.577342033
1035nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
1036sample1
= getUnifRand(
0.,
1., nsam1)
1038+0.156207800,
+0.735452354,
+0.307618022,
+0.792486310,
+0.353777647,
+0.208282650
1039sample2
= getUnifRand(
0.,
1., nsam2)
1041+0.732567489,
+0.503451109,
+0.483844757,
+0.800864756,
+0.243870616,
+0.138783336
1045call setProbKS(probKS, quanKS, statKS, nsam1, nsam2)
1047+0.809557319,
+0.638519764
1049iweight1
= getUnifRand(
1,
9, nsam1)
1051+3,
+2,
+6,
+1,
+7,
+7
1053statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
1056call setProbKS(probKS, quanKS, statKS,
sum(iweight1), nsam2)
1058+0.643532872E-1,
+1.31081676
1059statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
1062call setProbKS(probKS, quanKS, statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
1064+0.279125988,
+0.991588354
1066iweight2
= getUnifRand(
1,
9, nsam2)
1068+5,
+1,
+3,
+8,
+3,
+9
1070statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
1073call setProbKS(probKS, quanKS, statKS,
sum(iweight1),
sum(iweight2))
1075+0.277757645E-2,
+1.81374347
1076call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
1078+0.251361251,
+1.01784384
1079statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
1082call setProbKS(probKS, quanKS, statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
1084+0.547648847,
+0.797847271