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) :: statKS, probKS
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(
"probKS = getProbKS(statKS, nsam1) ! assuming unweighted samples.")
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(
"probKS = getProbKS(statKS, sum(iweight1))")
64 call disp%show(
"statKS = getDisKolm(sample1, rweight1, sum(rweight1))")
65 statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
68 call disp%show(
"probKS = getProbKS(statKS, sum(rweight1), sum(rweight1**2))")
69 probKS
= getProbKS(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) :: statKS, probKS
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(
"probKS = getProbKS(statKS, nsam1) ! assuming unweighted samples.")
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(
"probKS = getProbKS(statKS, sum(iweight1))")
115 probKS
= getProbKS(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(
"probKS = getProbKS(statKS, sum(rweight1), sum(rweight1**2))")
123 probKS
= getProbKS(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) :: statKS, probKS
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(
"probKS = getProbKS(statKS, nsam1, nsam2) ! assuming unweighted samples.")
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(
"probKS = getProbKS(statKS, sum(iweight1), nsam2)")
173 probKS
= getProbKS(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(
"probKS = getProbKS(statKS, sum(rweight1), nsam2, sum(rweight1**2))")
181 probKS
= getProbKS(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(
"probKS = getProbKS(statKS, sum(iweight1), sum(iweight2))")
196 probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
199 call disp%show(
"probKS = getProbKS(statKS, sum(rweight1), sum(iweight2), sum(rweight1**2))")
200 probKS
= getProbKS(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(
"probKS = getProbKS(statKS, sum(rweight1), sum(rweight2), sum(rweight1**2), sum(rweight2**2))")
208 probKS
= getProbKS(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)
17iweight1
= getUnifRand(
1,
9, nsam1)
21statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
27statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
30probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
34nsam1
= getUnifRand(
1,
10)
35sample1
= getUnifRand(
0.,
1., nsam1)
37+0.230154216,
+0.824731588E-2,
+0.812823772,
+0.494708002,
+0.415701628,
+0.866462886,
+0.431321621,
+0.813370705,
+0.791037381
45iweight1
= getUnifRand(
1,
9, nsam1)
47+1,
+6,
+1,
+1,
+7,
+6,
+3,
+7,
+3
49statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
55statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
58probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
62nsam1
= getUnifRand(
1,
10)
63sample1
= getUnifRand(
0.,
1., nsam1)
65+0.231356204,
+0.126278281,
+0.887744308,
+0.952601254,
+0.921268046,
+0.713880777,
+0.758632183
73iweight1
= getUnifRand(
1,
9, nsam1)
75+9,
+7,
+9,
+9,
+3,
+9,
+3
77statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
83statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
86probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
90nsam1
= getUnifRand(
1,
10)
91sample1
= getUnifRand(
0.,
1., nsam1)
93+0.301886976,
+0.138111234
101iweight1
= getUnifRand(
1,
9, nsam1)
105statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
111statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
114probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
118nsam1
= getUnifRand(
1,
10)
119sample1
= getUnifRand(
0.,
1., nsam1)
121+0.275684774,
+0.745084405,
+0.627937376,
+0.669842958E-1,
+0.656701505,
+0.552377284,
+0.908759356,
+0.222776830,
+0.106731951
129iweight1
= getUnifRand(
1,
9, nsam1)
131+7,
+5,
+8,
+9,
+8,
+1,
+6,
+7,
+2
133statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
139statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
142probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
146nsam1
= getUnifRand(
1,
10)
147sample1
= getUnifRand(
0.,
1., nsam1)
157iweight1
= getUnifRand(
1,
9, nsam1)
161statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
167statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
170probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
174nsam1
= getUnifRand(
1,
10)
175sample1
= getUnifRand(
0.,
1., nsam1)
177+0.478052437,
+0.575801909,
+0.170047164,
+0.207371831,
+0.150430620,
+0.230965734,
+0.858748436,
+0.296061993,
+0.745531321,
+0.747784972E-1
185iweight1
= getUnifRand(
1,
9, nsam1)
187+4,
+9,
+9,
+1,
+6,
+7,
+9,
+2,
+8,
+6
189statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
195statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
198probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
202nsam1
= getUnifRand(
1,
10)
203sample1
= getUnifRand(
0.,
1., nsam1)
205+0.337312222,
+0.901388586
213iweight1
= getUnifRand(
1,
9, nsam1)
217statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
223statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
226probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
230nsam1
= getUnifRand(
1,
10)
231sample1
= getUnifRand(
0.,
1., nsam1)
233+0.860689223,
+0.749649167,
+0.212841451,
+0.221081972,
+0.530286610
241iweight1
= getUnifRand(
1,
9, nsam1)
245statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
251statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
254probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
258nsam1
= getUnifRand(
1,
10)
259sample1
= getUnifRand(
0.,
1., nsam1)
269iweight1
= getUnifRand(
1,
9, nsam1)
273statKS
= getDisKolm(sample1, iweight1,
sum(iweight1))
279statKS
= getDisKolm(sample1, rweight1,
sum(rweight1))
282probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
291nsam1
= getUnifRand(
5,
10)
292sample1
= getNormRand(mean
= getFilled(
0., nsam1))
294-0.792379737,
-0.813195229,
-0.510598242,
+0.382817417,
+0.120958075,
+1.54223812
302iweight1
= getUnifRand(
1,
9, nsam1)
304+9,
+3,
+2,
+9,
+8,
+8
306statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
312statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
315probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
319nsam1
= getUnifRand(
5,
10)
320sample1
= getNormRand(mean
= getFilled(
0., nsam1))
322+2.15230751,
-0.862318575,
-0.580217600,
+0.361171722,
-0.646640897,
+2.14648771,
+2.78114915,
-0.484589964
330iweight1
= getUnifRand(
1,
9, nsam1)
332+2,
+1,
+7,
+4,
+3,
+3,
+7,
+4
334statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
340statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
343probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
347nsam1
= getUnifRand(
5,
10)
348sample1
= getNormRand(mean
= getFilled(
0., nsam1))
350-1.02140808,
+1.59703720,
+0.610186875,
+0.778985098E-1,
-0.288317710,
-1.86103022
358iweight1
= getUnifRand(
1,
9, nsam1)
360+1,
+8,
+8,
+8,
+3,
+5
362statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
368statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
371probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
375nsam1
= getUnifRand(
5,
10)
376sample1
= getNormRand(mean
= getFilled(
0., nsam1))
378-0.866718829,
-0.943031847,
-0.948334813,
-1.13487947,
-0.658094704,
+0.173487604
386iweight1
= getUnifRand(
1,
9, nsam1)
388+5,
+9,
+6,
+5,
+4,
+8
390statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
396statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
399probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
403nsam1
= getUnifRand(
5,
10)
404sample1
= getNormRand(mean
= getFilled(
0., nsam1))
406-0.158663969E-1,
+0.249184623,
-0.405293286,
+1.05621457,
-1.49081731,
-0.699317932,
-1.27065957,
-1.14455914,
+1.01230884
414iweight1
= getUnifRand(
1,
9, nsam1)
416+9,
+1,
+3,
+9,
+1,
+1,
+9,
+5,
+9
418statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
424statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
427probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
431nsam1
= getUnifRand(
5,
10)
432sample1
= getNormRand(mean
= getFilled(
0., nsam1))
434+2.64394498,
-0.874580443,
+0.250181377,
-1.18626332,
+0.916883409,
-1.14391220,
-0.305221379,
-0.217151083E-2,
+0.711415589,
+1.72289348
442iweight1
= getUnifRand(
1,
9, nsam1)
444+1,
+5,
+4,
+8,
+8,
+8,
+7,
+7,
+1,
+5
446statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
452statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
455probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
459nsam1
= getUnifRand(
5,
10)
460sample1
= getNormRand(mean
= getFilled(
0., nsam1))
462+0.580808342,
+0.131562337,
-0.879199445,
+1.45237088,
+0.148051053,
-3.38608170,
-0.223906100,
+0.442292064,
-0.339343995,
-0.648048341
470iweight1
= getUnifRand(
1,
9, nsam1)
472+6,
+9,
+4,
+5,
+1,
+1,
+9,
+8,
+2,
+6
474statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
480statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
483probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
487nsam1
= getUnifRand(
5,
10)
488sample1
= getNormRand(mean
= getFilled(
0., nsam1))
490+0.284834951,
-0.374169439,
-1.18516827,
-1.21960366,
-0.826427877,
-0.353151150E-1,
+0.219908670,
-0.508771092E-1
498iweight1
= getUnifRand(
1,
9, nsam1)
500+8,
+3,
+9,
+9,
+6,
+9,
+3,
+7
502statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
508statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
511probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
515nsam1
= getUnifRand(
5,
10)
516sample1
= getNormRand(mean
= getFilled(
0., nsam1))
518-0.162563056,
+1.07349551,
-1.24041593,
+0.331466824,
+0.100684859,
+1.05376613,
+0.382466376,
+1.05344319
526iweight1
= getUnifRand(
1,
9, nsam1)
528+7,
+1,
+2,
+8,
+6,
+3,
+3,
+8
530statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
536statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
539probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
543nsam1
= getUnifRand(
5,
10)
544sample1
= getNormRand(mean
= getFilled(
0., nsam1))
546-1.62941992,
-0.292969104E-1,
-0.343095660,
-0.837777317,
+0.694119036,
-1.06800473,
+1.26200175,
+0.279819090E-1,
+0.348556370
554iweight1
= getUnifRand(
1,
9, nsam1)
556+5,
+5,
+5,
+2,
+5,
+5,
+2,
+3,
+9
558statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), getNormCDF_RKS)
564statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), getNormCDF_RKS)
567probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight1
**2))
576nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
577sample1
= getUnifRand(
0.,
1., nsam1)
579+0.901894808,
+0.524454117,
+0.765429735,
+0.698456228,
+0.979507565E-1,
+0.732012391E-1
580sample2
= getUnifRand(
0.,
1., nsam2)
582+0.930930018,
+0.689961553,
+0.354033113,
+0.325182855,
+0.445175171E-2,
+0.694705129,
+0.133988559,
+0.832012057
590iweight1
= getUnifRand(
1,
9, nsam1)
592+5,
+4,
+3,
+1,
+3,
+6
594statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
597probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
600statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
603probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
607iweight2
= getUnifRand(
1,
9, nsam2)
609+6,
+2,
+4,
+5,
+2,
+8,
+3,
+1
611statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
614probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
617probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
620statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
623probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
627nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
628sample1
= getUnifRand(
0.,
1., nsam1)
630+0.438950181,
+0.645309269,
+0.214996636,
+0.700547218,
+0.333307922,
+0.529284060,
+0.362345517,
+0.123621225
631sample2
= getUnifRand(
0.,
1., nsam2)
633+0.722660303,
+0.895832002,
+0.839340627
641iweight1
= getUnifRand(
1,
9, nsam1)
643+4,
+2,
+6,
+8,
+7,
+7,
+4,
+6
645statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
648probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
651statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
654probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
658iweight2
= getUnifRand(
1,
9, nsam2)
662statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
665probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
668probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
671statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
674probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
678nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
679sample1
= getUnifRand(
0.,
1., nsam1)
681+0.385917723,
+0.816458583,
+0.845681250,
+0.173637331,
+0.754182279,
+0.644990802,
+0.835732937,
+0.775341094,
+0.861362755,
+0.307881653
682sample2
= getUnifRand(
0.,
1., nsam2)
684+0.142723083,
+0.338826180E-1,
+0.879827142E-1,
+0.421717107,
+0.324221373
692iweight1
= getUnifRand(
1,
9, nsam1)
694+7,
+6,
+5,
+7,
+9,
+9,
+8,
+4,
+7,
+6
696statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
699probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
702statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
705probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
709iweight2
= getUnifRand(
1,
9, nsam2)
713statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
716probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
719probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
722statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
725probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
729nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
730sample1
= getUnifRand(
0.,
1., nsam1)
732+0.540120006,
+0.770794868,
+0.897860825,
+0.343911588
733sample2
= getUnifRand(
0.,
1., nsam2)
735+0.233095109,
+0.373438835,
+0.290213227,
+0.270098209,
+0.258855462
743iweight1
= getUnifRand(
1,
9, nsam1)
747statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
750probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
753statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
756probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
760iweight2
= getUnifRand(
1,
9, nsam2)
764statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
767probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
770probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
773statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
776probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
780nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
781sample1
= getUnifRand(
0.,
1., nsam1)
783+0.989955544,
+0.276692569,
+0.205381453
784sample2
= getUnifRand(
0.,
1., nsam2)
794iweight1
= getUnifRand(
1,
9, nsam1)
798statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
801probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
804statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
807probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
811iweight2
= getUnifRand(
1,
9, nsam2)
815statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
818probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
821probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
824statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
827probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
831nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
832sample1
= getUnifRand(
0.,
1., nsam1)
834+0.708028853,
+0.731888413E-1,
+0.497773826,
+0.427994013,
+0.481690705
835sample2
= getUnifRand(
0.,
1., nsam2)
837+0.457938135,
+0.792325914,
+0.389327466,
+0.569079340
845iweight1
= getUnifRand(
1,
9, nsam1)
849statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
852probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
855statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
858probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
862iweight2
= getUnifRand(
1,
9, nsam2)
866statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
869probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
872probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
875statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
878probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
882nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
883sample1
= getUnifRand(
0.,
1., nsam1)
885+0.197341144,
+0.739267588,
+0.551396072
886sample2
= getUnifRand(
0.,
1., nsam2)
888+0.386786997,
+0.455212355,
+0.389451742,
+0.132000208,
+0.907285094,
+0.854464829,
+0.177605927,
+0.342428505
896iweight1
= getUnifRand(
1,
9, nsam1)
900statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
903probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
906statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
909probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
913iweight2
= getUnifRand(
1,
9, nsam2)
915+4,
+3,
+6,
+9,
+5,
+3,
+6,
+5
917statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
920probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
923probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
926statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
929probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
933nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
934sample1
= getUnifRand(
0.,
1., nsam1)
936+0.610466957,
+0.730848789,
+0.359789848,
+0.985602319,
+0.264157832,
+0.689871848
937sample2
= getUnifRand(
0.,
1., nsam2)
947iweight1
= getUnifRand(
1,
9, nsam1)
949+3,
+4,
+8,
+9,
+5,
+8
951statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
954probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
957statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
960probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
964iweight2
= getUnifRand(
1,
9, nsam2)
968statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
971probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
974probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
977statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
980probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
984nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
985sample1
= getUnifRand(
0.,
1., nsam1)
987+0.749032676,
+0.864301682,
+0.992489040,
+0.527875721,
+0.230364799
988sample2
= getUnifRand(
0.,
1., nsam2)
990+0.146719813E-1,
+0.310063958E-1,
+0.411042511,
+0.403165162,
+0.191839993,
+0.673525453,
+0.757620513,
+0.966015399,
+0.527426898
998iweight1
= getUnifRand(
1,
9, nsam1)
1002statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
1005probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
1008statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
1011probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
1015iweight2
= getUnifRand(
1,
9, nsam2)
1017+8,
+3,
+2,
+4,
+2,
+9,
+3,
+4,
+3
1019statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
1022probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
1025probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
1028statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
1031probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))
1035nsam1
= getUnifRand(
1,
10); nsam2
= getUnifRand(
1,
10)
1036sample1
= getUnifRand(
0.,
1., nsam1)
1038+0.474074602,
+0.540832162,
+0.923044622
1039sample2
= getUnifRand(
0.,
1., nsam2)
1041+0.398885846,
+0.203049183E-1
1049iweight1
= getUnifRand(
1,
9, nsam1)
1053statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2)
1056probKS
= getProbKS(statKS,
sum(iweight1), nsam2)
1059statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2)
1062probKS
= getProbKS(statKS,
sum(rweight1), nsam2,
sum(rweight1
**2))
1066iweight2
= getUnifRand(
1,
9, nsam2)
1070statKS
= getDisKolm(sample1, iweight1,
sum(iweight1), sample2, iweight2,
sum(iweight2))
1073probKS
= getProbKS(statKS,
sum(iweight1),
sum(iweight2))
1076probKS
= getProbKS(statKS,
sum(rweight1),
sum(iweight2),
sum(rweight1
**2))
1079statKS
= getDisKolm(sample1, rweight1,
sum(rweight1), sample2, rweight2,
sum(rweight2))
1082probKS
= getProbKS(statKS,
sum(rweight1),
sum(rweight2),
sum(rweight1
**2),
sum(rweight2
**2))