19 integer(IK) :: itry, ntry
= 10
20 type(display_type) :: disp
21 character(:),
allocatable :: format
25 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
26 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
27 call disp%show(
"!Convert correlation matrix and standard deviation to covariance matrix.")
28 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
29 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
37 real(TKG),
allocatable :: cov(:,:), cor(:,:), std(:)
38 format = getFormat(mold
= [
0._TKG], ed
= SK_
"es", signed
= .true._LK)
41 call disp%show(
"ndim = getUnifRand(1, 7)")
45 call disp%show(
"std = getUnifRand(1, 10, ndim)")
48 call disp%show( std ,
format = format )
49 call disp%show(
"cor = getCovRand(1., ndim)")
52 call disp%show( cor ,
format = format )
53 call disp%show(
"cov = getFilled(0._TKG, ndim, ndim + 1)")
55 call disp%show(
"call setMatCopy(cov(1:ndim, 1:ndim), rdpack, cor, rdpack, lowDia)")
56 call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
58 call disp%show( cov ,
format = format )
59 call disp%show(
"call setCov(cov(1:ndim, 2:ndim+1), uppDia, cov(1:ndim, 1:ndim), lowDia, std) ! convert lower-triangle correlation matrix to upper-triangle covariance matrix.")
60 call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
62 call disp%show( cov ,
format = format )
64 call disp%show(
"cov = getFilled(0._TKG, ndim, ndim + 1)")
66 call disp%show(
"call setMatCopy(cov(1:ndim, 2:ndim+1), rdpack, cor, rdpack, uppDia)")
67 call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
69 call disp%show( cov ,
format = format )
70 call disp%show(
"call setCov(cov(1:ndim, 1:ndim), lowDia, cov(1:ndim, 2:ndim+1), uppDia, std) ! convert upper-triangle correlation matrix to lower-triangle covariance matrix.")
71 call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
73 call disp%show( cov ,
format = format )
79 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
80 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
81 call disp%show(
"!Compute the covariance matrix of a 2-D sample.")
82 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
83 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
88 real(TKG),
allocatable :: sample(:,:), samShifted(:,:), cov(:,:), mean(:)
89 integer(IK) :: ndim, nsam, dim
90 call disp%show(
"ndim = 2; nsam = 10; dim = 2")
91 ndim
= 2; nsam
= 10; dim
= 2
92 call disp%show(
"sample = reshape(getUnifRand(1, 20, ndim * nsam), shape = [ndim, nsam], order = [2, 1])")
93 sample
= reshape(
getUnifRand(
1,
20, ndim
* nsam), shape
= [ndim, nsam], order
= [
2,
1])
96 call disp%show(
"mean = getMean(sample, dim)")
100 call disp%show(
"samShifted = getShifted(sample, dim, -mean)")
104 call disp%show(
"cov = getFilled(0., ndim, ndim)")
106 call disp%show(
"call setCov(cov, uppDia, mean, sample, dim)")
107 call setCov(cov, uppDia, mean, sample, dim)
110 call disp%show(
"cov = getFilled(0., ndim, ndim)")
112 call disp%show(
"call setCov(cov, uppDia, samShifted, dim) ! same result as above.")
113 call setCov(cov, uppDia, samShifted, dim)
117 call disp%show(
"cov = getFilled(0., ndim, ndim)")
119 call disp%show(
"call setCov(cov, lowDia, mean, sample, dim)")
120 call setCov(cov, lowDia, mean, sample, dim)
123 call disp%show(
"cov = getFilled(0., ndim, ndim)")
125 call disp%show(
"call setCov(cov, lowDia, samShifted, dim) ! same result as above.")
126 call setCov(cov, lowDia, samShifted, dim)
130 call disp%show(
"Compute the sample covariance along the first dimension.", deliml
= SK_
'''')
134 call disp%show(
"cov = getFilled(0., ndim, ndim)")
136 call disp%show(
"call setCov(cov, uppDia, mean, transpose(sample), dim)")
137 call setCov(cov, uppDia, mean,
transpose(sample), dim)
140 call disp%show(
"cov = getFilled(0., ndim, ndim)")
142 call disp%show(
"call setCov(cov, uppDia, transpose(samShifted), dim) ! same result as above.")
143 call setCov(cov, uppDia,
transpose(samShifted), dim)
147 call disp%show(
"cov = getFilled(0., ndim, ndim)")
149 call disp%show(
"call setCov(cov, lowDia, mean, transpose(sample), dim)")
150 call setCov(cov, lowDia, mean,
transpose(sample), dim)
153 call disp%show(
"cov = getFilled(0., ndim, ndim)")
155 call disp%show(
"call setCov(cov, lowDia, transpose(samShifted), dim) ! same result as above.")
156 call setCov(cov, lowDia,
transpose(samShifted), dim)
160 call disp%show(
"Compute the full sample covariance for a pair of time series.", deliml
= SK_
'''')
162 call disp%show(
"cov = getFilled(0., ndim, ndim)")
164 call disp%show(
"call setCov(cov, mean, sample(1,:), sample(2,:))")
165 call setCov(cov, mean, sample(
1,:), sample(
2,:))
168 call disp%show(
"cov = getFilled(0., ndim, ndim)")
170 call disp%show(
"call setCov(cov, samShifted(1,:), samShifted(2,:)) ! same result as above.")
171 call setCov(cov, samShifted(
1,:), samShifted(
2,:))
178 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
179 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
180 call disp%show(
"!Compute the biased covariance matrix of a weighted 2-D sample.")
181 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
182 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
188 integer(IK) :: iweisum
189 real(TKG),
allocatable :: rweight(:)
190 integer(IK),
allocatable :: iweight(:)
191 real(TKG),
allocatable :: sample(:,:), samShifted(:,:), cov(:,:), mean(:)
192 integer(IK) :: ndim, nsam, dim
193 call disp%show(
"ndim = 2; nsam = 10; dim = 2")
194 ndim
= 2; nsam
= 10; dim
= 2
195 call disp%show(
"sample = reshape(getUnifRand(1, 20, ndim * nsam), shape = [ndim, nsam], order = [2, 1])")
196 sample
= reshape(
getUnifRand(
1,
20, ndim
* nsam), shape
= [ndim, nsam], order
= [
2,
1])
199 call disp%show(
"call setResized(mean, ndim)")
201 call disp%show(
"iweight = getUnifRand(1, 10, nsam) ! integer-valued weights.")
205 call disp%show(
"call setMean(mean, sample, dim, iweight, iweisum)")
206 call setMean(mean, sample, dim, iweight, iweisum)
211 call disp%show(
"rweight = iweight ! or real-valued weights.")
215 call disp%show(
"call setMean(mean, sample, dim, rweight, rweisum)")
216 call setMean(mean, sample, dim, rweight, rweisum)
223 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
224 call disp%show(
"!Compute the covariance matrix integer weights.")
225 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
228 call disp%show(
"samShifted = getShifted(sample, dim, -mean)")
232 call disp%show(
"cov = getFilled(0., ndim, ndim)")
234 call disp%show(
"call setCov(cov, uppDia, mean, sample, dim, iweight, iweisum)")
235 call setCov(cov, uppDia, mean, sample, dim, iweight, iweisum)
238 call disp%show(
"cov = getFilled(0., ndim, ndim)")
240 call disp%show(
"call setCov(cov, uppDia, samShifted, dim, iweight, sum(iweight)) ! same result as above.")
241 call setCov(cov, uppDia, samShifted, dim, iweight,
sum(iweight))
245 call disp%show(
"cov = getFilled(0., ndim, ndim)")
247 call disp%show(
"call setCov(cov, lowDia, mean, sample, dim, iweight, iweisum)")
248 call setCov(cov, lowDia, mean, sample, dim, iweight, iweisum)
251 call disp%show(
"cov = getFilled(0., ndim, ndim)")
253 call disp%show(
"call setCov(cov, lowDia, samShifted, dim, iweight, sum(iweight)) ! same result as above.")
254 call setCov(cov, lowDia, samShifted, dim, iweight,
sum(iweight))
258 call disp%show(
"Compute the sample covariance along the first dimension.", deliml
= SK_
'''')
262 call disp%show(
"cov = getFilled(0., ndim, ndim)")
264 call disp%show(
"call setCov(cov, uppDia, mean, transpose(sample), dim, iweight, iweisum)")
265 call setCov(cov, uppDia, mean,
transpose(sample), dim, iweight, iweisum)
268 call disp%show(
"cov = getFilled(0., ndim, ndim)")
270 call disp%show(
"call setCov(cov, uppDia, transpose(samShifted), dim, iweight, sum(iweight)) ! same result as above.")
271 call setCov(cov, uppDia,
transpose(samShifted), dim, iweight,
sum(iweight))
275 call disp%show(
"cov = getFilled(0., ndim, ndim)")
277 call disp%show(
"call setCov(cov, lowDia, mean, transpose(sample), dim, iweight, iweisum)")
278 call setCov(cov, lowDia, mean,
transpose(sample), dim, iweight, iweisum)
281 call disp%show(
"cov = getFilled(0., ndim, ndim)")
283 call disp%show(
"call setCov(cov, lowDia, transpose(samShifted), dim, iweight, sum(iweight)) ! same result as above.")
284 call setCov(cov, lowDia,
transpose(samShifted), dim, iweight,
sum(iweight))
288 call disp%show(
"Compute the full sample covariance for a pair of time series.", deliml
= SK_
'''')
290 call disp%show(
"cov = getFilled(0., ndim, ndim)")
292 call disp%show(
"call setCov(cov, mean, sample(1,:), sample(2,:), iweight, iweisum)")
293 call setCov(cov, mean, sample(
1,:), sample(
2,:), iweight, iweisum)
296 call disp%show(
"cov = getFilled(0., ndim, ndim)")
298 call disp%show(
"call setCov(cov, samShifted(1,:), samShifted(2,:), iweight, sum(iweight)) ! same result as above.")
299 call setCov(cov, samShifted(
1,:), samShifted(
2,:), iweight,
sum(iweight))
305 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
306 call disp%show(
"!Compute the covariance matrix real weights.")
307 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
312 call disp%show(
"samShifted = getShifted(sample, dim, -mean)")
316 call disp%show(
"cov = getFilled(0., ndim, ndim)")
318 call disp%show(
"call setCov(cov, uppDia, mean, sample, dim, rweight, rweisum)")
319 call setCov(cov, uppDia, mean, sample, dim, rweight, rweisum)
322 call disp%show(
"cov = getFilled(0., ndim, ndim)")
324 call disp%show(
"call setCov(cov, uppDia, samShifted, dim, rweight, sum(rweight)) ! same result as above.")
325 call setCov(cov, uppDia, samShifted, dim, rweight,
sum(rweight))
329 call disp%show(
"cov = getFilled(0., ndim, ndim)")
331 call disp%show(
"call setCov(cov, lowDia, mean, sample, dim, rweight, rweisum)")
332 call setCov(cov, lowDia, mean, sample, dim, rweight, rweisum)
335 call disp%show(
"cov = getFilled(0., ndim, ndim)")
337 call disp%show(
"call setCov(cov, lowDia, samShifted, dim, rweight, sum(rweight)) ! same result as above.")
338 call setCov(cov, lowDia, samShifted, dim, rweight,
sum(rweight))
342 call disp%show(
"Compute the sample covariance along the first dimension.", deliml
= SK_
'''')
346 call disp%show(
"cov = getFilled(0., ndim, ndim)")
348 call disp%show(
"call setCov(cov, uppDia, mean, transpose(sample), dim, rweight, rweisum)")
349 call setCov(cov, uppDia, mean,
transpose(sample), dim, rweight, rweisum)
352 call disp%show(
"cov = getFilled(0., ndim, ndim)")
354 call disp%show(
"call setCov(cov, uppDia, transpose(samShifted), dim, rweight, sum(rweight)) ! same result as above.")
355 call setCov(cov, uppDia,
transpose(samShifted), dim, rweight,
sum(rweight))
359 call disp%show(
"cov = getFilled(0., ndim, ndim)")
361 call disp%show(
"call setCov(cov, lowDia, mean, transpose(sample), dim, rweight, rweisum)")
362 call setCov(cov, lowDia, mean,
transpose(sample), dim, rweight, rweisum)
365 call disp%show(
"cov = getFilled(0., ndim, ndim)")
367 call disp%show(
"call setCov(cov, lowDia, transpose(samShifted), dim, rweight, sum(rweight)) ! same result as above.")
368 call setCov(cov, lowDia,
transpose(samShifted), dim, rweight,
sum(rweight))
372 call disp%show(
"Compute the full sample covariance for a pair of time series.", deliml
= SK_
'''')
374 call disp%show(
"cov = getFilled(0., ndim, ndim)")
376 call disp%show(
"call setCov(cov, mean, sample(1,:), sample(2,:), rweight, rweisum)")
377 call setCov(cov, mean, sample(
1,:), sample(
2,:), rweight, rweisum)
380 call disp%show(
"cov = getFilled(0., ndim, ndim)")
382 call disp%show(
"call setCov(cov, samShifted(1,:), samShifted(2,:), rweight, sum(rweight)) ! same result as above.")
383 call setCov(cov, samShifted(
1,:), samShifted(
2,:), rweight,
sum(rweight))
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 count evenly spaced points over the interval [x1, x2] if x1 < x2, or [x2,...
Generate and return a random positive-definite (correlation or covariance) matrix using the Gram meth...
Generate and return a scalar or a contiguous array of rank 1 of length s1 of randomly uniformly distr...
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.
Copy a desired subset of the input source matrix of arbitrary shape (:) or (:,:) to the target subset...
Generate and return the (weighted) mean of an input sample of nsam observations with ndim = 1 or 2 at...
Return the (weighted) mean of a pair of time series or of an input sample of nsam observations with n...
Generate a sample of shape (nsam), or (ndim, nsam) or (nsam, ndim) that is shifted by the specified i...
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 generating arrays with linear or logarithm...
This module contains classes and procedures for generating random matrices distributed on the space o...
This module contains classes and procedures for computing various statistical quantities related to t...
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 LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
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.
This module contains procedures and generic interfaces relevant to copying (diagonal or upper/lower t...
This module contains classes and procedures for computing the first moment (i.e., the statistical mea...
This module contains classes and procedures for shifting univariate or multivariate samples by arbitr...
Generate and return an object of type display_type.
14+7.000000E+00,
+9.000000E+00,
+6.000000E+00,
+4.000000E+00
17+1.000000E+00,
+6.544206E-01,
+5.815119E-01,
+1.371571E-01
18+6.544206E-01,
+1.000000E+00,
+1.711279E-02,
-4.053138E-01
19+5.815119E-01,
+1.711279E-02,
+1.000000E+00,
+6.762713E-02
20+1.371571E-01,
-4.053138E-01,
+6.762713E-02,
+1.000000E+00
22call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
24+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
25+6.544206E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
26+5.815119E-01,
+1.711279E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
27+1.371571E-01,
-4.053138E-01,
+6.762713E-02,
+1.000000E+00,
+0.000000E+00
28call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
30+1.000000E+00,
+4.900000E+01,
+4.122850E+01,
+2.442350E+01,
+3.840398E+00
31+6.544206E-01,
+1.000000E+00,
+8.100000E+01,
+9.240907E-01,
-1.459130E+01
32+5.815119E-01,
+1.711279E-02,
+1.000000E+00,
+3.600000E+01,
+1.623051E+00
33+1.371571E-01,
-4.053138E-01,
+6.762713E-02,
+1.000000E+00,
+1.600000E+01
36call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
38+0.000000E+00,
+1.000000E+00,
+6.544206E-01,
+5.815119E-01,
+1.371571E-01
39+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+1.711279E-02,
-4.053138E-01
40+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+6.762713E-02
41+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
42call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
44+4.900000E+01,
+1.000000E+00,
+6.544206E-01,
+5.815119E-01,
+1.371571E-01
45+4.122850E+01,
+8.100000E+01,
+1.000000E+00,
+1.711279E-02,
-4.053138E-01
46+2.442350E+01,
+9.240907E-01,
+3.600000E+01,
+1.000000E+00,
+6.762713E-02
47+3.840398E+00,
-1.459130E+01,
+1.623051E+00,
+1.600000E+01,
+1.000000E+00
55+2.000000E+00,
+3.000000E+00,
+9.000000E+00,
+4.000000E+00,
+2.000000E+00,
+2.000000E+00
58+1.000000E+00,
+4.023281E-02,
+7.728843E-01,
+4.914861E-01,
+9.849682E-02,
-5.807413E-01
59+4.023281E-02,
+1.000000E+00,
+6.530263E-01,
+6.725434E-01,
-7.959484E-01,
+5.932847E-01
60+7.728843E-01,
+6.530263E-01,
+1.000000E+00,
+8.497998E-01,
-4.249785E-01,
-7.603369E-02
61+4.914861E-01,
+6.725434E-01,
+8.497998E-01,
+1.000000E+00,
-6.386417E-01,
+1.259757E-01
62+9.849682E-02,
-7.959484E-01,
-4.249785E-01,
-6.386417E-01,
+1.000000E+00,
-6.656111E-01
63-5.807413E-01,
+5.932847E-01,
-7.603369E-02,
+1.259757E-01,
-6.656111E-01,
+1.000000E+00
65call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
67+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
68+4.023281E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
69+7.728843E-01,
+6.530263E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
70+4.914861E-01,
+6.725434E-01,
+8.497998E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
71+9.849682E-02,
-7.959484E-01,
-4.249785E-01,
-6.386417E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
72-5.807413E-01,
+5.932847E-01,
-7.603369E-02,
+1.259757E-01,
-6.656111E-01,
+1.000000E+00,
+0.000000E+00
73call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
75+1.000000E+00,
+4.000000E+00,
+2.413969E-01,
+1.391192E+01,
+3.931889E+00,
+3.939873E-01,
-2.322965E+00
76+4.023281E-02,
+1.000000E+00,
+9.000000E+00,
+1.763171E+01,
+8.070520E+00,
-4.775691E+00,
+3.559708E+00
77+7.728843E-01,
+6.530263E-01,
+1.000000E+00,
+8.100000E+01,
+3.059279E+01,
-7.649613E+00,
-1.368606E+00
78+4.914861E-01,
+6.725434E-01,
+8.497998E-01,
+1.000000E+00,
+1.600000E+01,
-5.109134E+00,
+1.007806E+00
79+9.849682E-02,
-7.959484E-01,
-4.249785E-01,
-6.386417E-01,
+1.000000E+00,
+4.000000E+00,
-2.662444E+00
80-5.807413E-01,
+5.932847E-01,
-7.603369E-02,
+1.259757E-01,
-6.656111E-01,
+1.000000E+00,
+4.000000E+00
83call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
85+0.000000E+00,
+1.000000E+00,
+4.023281E-02,
+7.728843E-01,
+4.914861E-01,
+9.849682E-02,
-5.807413E-01
86+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+6.530263E-01,
+6.725434E-01,
-7.959484E-01,
+5.932847E-01
87+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+8.497998E-01,
-4.249785E-01,
-7.603369E-02
88+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-6.386417E-01,
+1.259757E-01
89+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-6.656111E-01
90+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
91call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
93+4.000000E+00,
+1.000000E+00,
+4.023281E-02,
+7.728843E-01,
+4.914861E-01,
+9.849682E-02,
-5.807413E-01
94+2.413969E-01,
+9.000000E+00,
+1.000000E+00,
+6.530263E-01,
+6.725434E-01,
-7.959484E-01,
+5.932847E-01
95+1.391192E+01,
+1.763171E+01,
+8.100000E+01,
+1.000000E+00,
+8.497998E-01,
-4.249785E-01,
-7.603369E-02
96+3.931889E+00,
+8.070520E+00,
+3.059279E+01,
+1.600000E+01,
+1.000000E+00,
-6.386417E-01,
+1.259757E-01
97+3.939873E-01,
-4.775691E+00,
-7.649613E+00,
-5.109134E+00,
+4.000000E+00,
+1.000000E+00,
-6.656111E-01
98-2.322965E+00,
+3.559708E+00,
-1.368606E+00,
+1.007806E+00,
-2.662444E+00,
+4.000000E+00,
+1.000000E+00
106+5.000000E+00,
+3.000000E+00,
+1.000000E+01,
+6.000000E+00,
+9.000000E+00,
+6.000000E+00
109+1.000000E+00,
+5.897937E-01,
-7.679903E-01,
-4.463248E-03,
+2.606820E-01,
+1.045563E-01
110+5.897937E-01,
+1.000000E+00,
+5.799925E-02,
+5.155175E-01,
+5.788521E-01,
-2.220319E-01
111-7.679903E-01,
+5.799925E-02,
+1.000000E+00,
+4.797719E-01,
+1.336182E-01,
-2.744980E-01
112-4.463248E-03,
+5.155175E-01,
+4.797719E-01,
+1.000000E+00,
+1.287769E-01,
+3.666028E-02
113+2.606820E-01,
+5.788521E-01,
+1.336182E-01,
+1.287769E-01,
+1.000000E+00,
-1.377943E-01
114+1.045563E-01,
-2.220319E-01,
-2.744980E-01,
+3.666028E-02,
-1.377943E-01,
+1.000000E+00
116call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
118+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
119+5.897937E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
120-7.679903E-01,
+5.799925E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
121-4.463248E-03,
+5.155175E-01,
+4.797719E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
122+2.606820E-01,
+5.788521E-01,
+1.336182E-01,
+1.287769E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
123+1.045563E-01,
-2.220319E-01,
-2.744980E-01,
+3.666028E-02,
-1.377943E-01,
+1.000000E+00,
+0.000000E+00
124call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
126+1.000000E+00,
+2.500000E+01,
+8.846906E+00,
-3.839951E+01,
-1.338974E-01,
+1.173069E+01,
+3.136689E+00
127+5.897937E-01,
+1.000000E+00,
+9.000000E+00,
+1.739978E+00,
+9.279314E+00,
+1.562901E+01,
-3.996574E+00
128-7.679903E-01,
+5.799925E-02,
+1.000000E+00,
+1.000000E+02,
+2.878631E+01,
+1.202564E+01,
-1.646988E+01
129-4.463248E-03,
+5.155175E-01,
+4.797719E-01,
+1.000000E+00,
+3.600000E+01,
+6.953952E+00,
+1.319770E+00
130+2.606820E-01,
+5.788521E-01,
+1.336182E-01,
+1.287769E-01,
+1.000000E+00,
+8.100000E+01,
-7.440895E+00
131+1.045563E-01,
-2.220319E-01,
-2.744980E-01,
+3.666028E-02,
-1.377943E-01,
+1.000000E+00,
+3.600000E+01
134call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
136+0.000000E+00,
+1.000000E+00,
+5.897937E-01,
-7.679903E-01,
-4.463248E-03,
+2.606820E-01,
+1.045563E-01
137+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+5.799925E-02,
+5.155175E-01,
+5.788521E-01,
-2.220319E-01
138+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+4.797719E-01,
+1.336182E-01,
-2.744980E-01
139+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+1.287769E-01,
+3.666028E-02
140+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-1.377943E-01
141+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
142call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
144+2.500000E+01,
+1.000000E+00,
+5.897937E-01,
-7.679903E-01,
-4.463248E-03,
+2.606820E-01,
+1.045563E-01
145+8.846906E+00,
+9.000000E+00,
+1.000000E+00,
+5.799925E-02,
+5.155175E-01,
+5.788521E-01,
-2.220319E-01
146-3.839951E+01,
+1.739978E+00,
+1.000000E+02,
+1.000000E+00,
+4.797719E-01,
+1.336182E-01,
-2.744980E-01
147-1.338974E-01,
+9.279314E+00,
+2.878631E+01,
+3.600000E+01,
+1.000000E+00,
+1.287769E-01,
+3.666028E-02
148+1.173069E+01,
+1.562901E+01,
+1.202564E+01,
+6.953952E+00,
+8.100000E+01,
+1.000000E+00,
-1.377943E-01
149+3.136689E+00,
-3.996574E+00,
-1.646988E+01,
+1.319770E+00,
-7.440895E+00,
+3.600000E+01,
+1.000000E+00
157+6.000000E+00,
+9.000000E+00,
+2.000000E+00,
+3.000000E+00
160+1.000000E+00,
-8.879269E-01,
+2.942848E-01,
-6.429215E-01
161-8.879269E-01,
+1.000000E+00,
+4.709339E-02,
+7.716588E-01
162+2.942848E-01,
+4.709339E-02,
+1.000000E+00,
-1.943900E-02
163-6.429215E-01,
+7.716588E-01,
-1.943900E-02,
+1.000000E+00
165call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
167+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
168-8.879269E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
169+2.942848E-01,
+4.709339E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
170-6.429215E-01,
+7.716588E-01,
-1.943900E-02,
+1.000000E+00,
+0.000000E+00
171call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
173+1.000000E+00,
+3.600000E+01,
-4.794806E+01,
+3.531417E+00,
-1.157259E+01
174-8.879269E-01,
+1.000000E+00,
+8.100000E+01,
+8.476810E-01,
+2.083479E+01
175+2.942848E-01,
+4.709339E-02,
+1.000000E+00,
+4.000000E+00,
-1.166340E-01
176-6.429215E-01,
+7.716588E-01,
-1.943900E-02,
+1.000000E+00,
+9.000000E+00
179call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
181+0.000000E+00,
+1.000000E+00,
-8.879269E-01,
+2.942848E-01,
-6.429215E-01
182+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+4.709339E-02,
+7.716588E-01
183+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-1.943900E-02
184+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
185call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
187+3.600000E+01,
+1.000000E+00,
-8.879269E-01,
+2.942848E-01,
-6.429215E-01
188-4.794806E+01,
+8.100000E+01,
+1.000000E+00,
+4.709339E-02,
+7.716588E-01
189+3.531417E+00,
+8.476810E-01,
+4.000000E+00,
+1.000000E+00,
-1.943900E-02
190-1.157259E+01,
+2.083479E+01,
-1.166340E-01,
+9.000000E+00,
+1.000000E+00
203call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
205+1.000000E+00,
+0.000000E+00
206call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
208+1.000000E+00,
+6.400000E+01
211call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
213+0.000000E+00,
+1.000000E+00
214call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
216+6.400000E+01,
+1.000000E+00
224+6.000000E+00,
+6.000000E+00,
+7.000000E+00,
+1.000000E+01,
+5.000000E+00
227+1.000000E+00,
-1.710908E-02,
-5.197237E-01,
+1.015936E-01,
+4.044273E-01
228-1.710908E-02,
+1.000000E+00,
+6.244778E-01,
+7.290409E-01,
-4.117261E-01
229-5.197237E-01,
+6.244778E-01,
+1.000000E+00,
+7.947495E-01,
-7.498054E-01
230+1.015936E-01,
+7.290409E-01,
+7.947495E-01,
+1.000000E+00,
-5.567722E-01
231+4.044273E-01,
-4.117261E-01,
-7.498054E-01,
-5.567722E-01,
+1.000000E+00
233call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
235+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
236-1.710908E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
237-5.197237E-01,
+6.244778E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
238+1.015936E-01,
+7.290409E-01,
+7.947495E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
239+4.044273E-01,
-4.117261E-01,
-7.498054E-01,
-5.567722E-01,
+1.000000E+00,
+0.000000E+00
240call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
242+1.000000E+00,
+3.600000E+01,
-6.159270E-01,
-2.182839E+01,
+6.095614E+00,
+1.213282E+01
243-1.710908E-02,
+1.000000E+00,
+3.600000E+01,
+2.622807E+01,
+4.374245E+01,
-1.235178E+01
244-5.197237E-01,
+6.244778E-01,
+1.000000E+00,
+4.900000E+01,
+5.563247E+01,
-2.624319E+01
245+1.015936E-01,
+7.290409E-01,
+7.947495E-01,
+1.000000E+00,
+1.000000E+02,
-2.783861E+01
246+4.044273E-01,
-4.117261E-01,
-7.498054E-01,
-5.567722E-01,
+1.000000E+00,
+2.500000E+01
249call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
251+0.000000E+00,
+1.000000E+00,
-1.710908E-02,
-5.197237E-01,
+1.015936E-01,
+4.044273E-01
252+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+6.244778E-01,
+7.290409E-01,
-4.117261E-01
253+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+7.947495E-01,
-7.498054E-01
254+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-5.567722E-01
255+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
256call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
258+3.600000E+01,
+1.000000E+00,
-1.710908E-02,
-5.197237E-01,
+1.015936E-01,
+4.044273E-01
259-6.159270E-01,
+3.600000E+01,
+1.000000E+00,
+6.244778E-01,
+7.290409E-01,
-4.117261E-01
260-2.182839E+01,
+2.622807E+01,
+4.900000E+01,
+1.000000E+00,
+7.947495E-01,
-7.498054E-01
261+6.095614E+00,
+4.374245E+01,
+5.563247E+01,
+1.000000E+02,
+1.000000E+00,
-5.567722E-01
262+1.213282E+01,
-1.235178E+01,
-2.624319E+01,
-2.783861E+01,
+2.500000E+01,
+1.000000E+00
270+7.000000E+00,
+2.000000E+00,
+8.000000E+00,
+1.000000E+00,
+6.000000E+00
273+1.000000E+00,
-6.294793E-01,
+7.991309E-01,
-7.867544E-01,
-3.664601E-02
274-6.294793E-01,
+1.000000E+00,
-3.614026E-02,
+6.684650E-01,
-5.464165E-01
275+7.991309E-01,
-3.614026E-02,
+1.000000E+00,
-4.956060E-01,
-4.787447E-01
276-7.867544E-01,
+6.684650E-01,
-4.956060E-01,
+1.000000E+00,
-2.422076E-01
277-3.664601E-02,
-5.464165E-01,
-4.787447E-01,
-2.422076E-01,
+1.000000E+00
279call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
281+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
282-6.294793E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
283+7.991309E-01,
-3.614026E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
284-7.867544E-01,
+6.684650E-01,
-4.956060E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
285-3.664601E-02,
-5.464165E-01,
-4.787447E-01,
-2.422076E-01,
+1.000000E+00,
+0.000000E+00
286call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
288+1.000000E+00,
+4.900000E+01,
-8.812710E+00,
+4.475133E+01,
-5.507280E+00,
-1.539132E+00
289-6.294793E-01,
+1.000000E+00,
+4.000000E+00,
-5.782442E-01,
+1.336930E+00,
-6.556997E+00
290+7.991309E-01,
-3.614026E-02,
+1.000000E+00,
+6.400000E+01,
-3.964848E+00,
-2.297975E+01
291-7.867544E-01,
+6.684650E-01,
-4.956060E-01,
+1.000000E+00,
+1.000000E+00,
-1.453246E+00
292-3.664601E-02,
-5.464165E-01,
-4.787447E-01,
-2.422076E-01,
+1.000000E+00,
+3.600000E+01
295call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
297+0.000000E+00,
+1.000000E+00,
-6.294793E-01,
+7.991309E-01,
-7.867544E-01,
-3.664601E-02
298+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-3.614026E-02,
+6.684650E-01,
-5.464165E-01
299+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-4.956060E-01,
-4.787447E-01
300+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-2.422076E-01
301+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
302call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
304+4.900000E+01,
+1.000000E+00,
-6.294793E-01,
+7.991309E-01,
-7.867544E-01,
-3.664601E-02
305-8.812710E+00,
+4.000000E+00,
+1.000000E+00,
-3.614026E-02,
+6.684650E-01,
-5.464165E-01
306+4.475133E+01,
-5.782442E-01,
+6.400000E+01,
+1.000000E+00,
-4.956060E-01,
-4.787447E-01
307-5.507280E+00,
+1.336930E+00,
-3.964848E+00,
+1.000000E+00,
+1.000000E+00,
-2.422076E-01
308-1.539132E+00,
-6.556997E+00,
-2.297975E+01,
-1.453246E+00,
+3.600000E+01,
+1.000000E+00
316+9.000000E+00,
+8.000000E+00
319+1.000000E+00,
+9.729016E-01
320+9.729016E-01,
+1.000000E+00
322call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
324+1.000000E+00,
+0.000000E+00,
+0.000000E+00
325+9.729016E-01,
+1.000000E+00,
+0.000000E+00
326call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
328+1.000000E+00,
+8.100000E+01,
+7.004891E+01
329+9.729016E-01,
+1.000000E+00,
+6.400000E+01
332call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
334+0.000000E+00,
+1.000000E+00,
+9.729016E-01
335+0.000000E+00,
+0.000000E+00,
+1.000000E+00
336call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
338+8.100000E+01,
+1.000000E+00,
+9.729016E-01
339+7.004891E+01,
+6.400000E+01,
+1.000000E+00
347+7.000000E+00,
+1.000000E+00,
+4.000000E+00,
+7.000000E+00
350+1.000000E+00,
-3.329586E-01,
+1.571624E-01,
-6.655376E-01
351-3.329586E-01,
+1.000000E+00,
+5.734950E-01,
+8.516300E-01
352+1.571624E-01,
+5.734950E-01,
+1.000000E+00,
+4.781445E-01
353-6.655376E-01,
+8.516300E-01,
+4.781445E-01,
+1.000000E+00
355call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
357+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
358-3.329586E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
359+1.571624E-01,
+5.734950E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
360-6.655376E-01,
+8.516300E-01,
+4.781445E-01,
+1.000000E+00,
+0.000000E+00
361call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
363+1.000000E+00,
+4.900000E+01,
-2.330710E+00,
+4.400548E+00,
-3.261134E+01
364-3.329586E-01,
+1.000000E+00,
+1.000000E+00,
+2.293980E+00,
+5.961410E+00
365+1.571624E-01,
+5.734950E-01,
+1.000000E+00,
+1.600000E+01,
+1.338805E+01
366-6.655376E-01,
+8.516300E-01,
+4.781445E-01,
+1.000000E+00,
+4.900000E+01
369call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
371+0.000000E+00,
+1.000000E+00,
-3.329586E-01,
+1.571624E-01,
-6.655376E-01
372+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+5.734950E-01,
+8.516300E-01
373+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
+4.781445E-01
374+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
375call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
377+4.900000E+01,
+1.000000E+00,
-3.329586E-01,
+1.571624E-01,
-6.655376E-01
378-2.330710E+00,
+1.000000E+00,
+1.000000E+00,
+5.734950E-01,
+8.516300E-01
379+4.400548E+00,
+2.293980E+00,
+1.600000E+01,
+1.000000E+00,
+4.781445E-01
380-3.261134E+01,
+5.961410E+00,
+1.338805E+01,
+4.900000E+01,
+1.000000E+00
388+7.000000E+00,
+3.000000E+00,
+1.000000E+00,
+8.000000E+00,
+3.000000E+00,
+8.000000E+00
391+1.000000E+00,
-6.865154E-01,
-3.722259E-01,
-4.555238E-01,
+5.617024E-01,
-4.812185E-01
392-6.865154E-01,
+1.000000E+00,
-4.175428E-02,
+3.215826E-01,
-5.951670E-01,
+6.668763E-01
393-3.722259E-01,
-4.175428E-02,
+1.000000E+00,
-3.474011E-01,
-3.992162E-01,
+4.134352E-01
394-4.555238E-01,
+3.215826E-01,
-3.474011E-01,
+1.000000E+00,
-3.370606E-01,
-2.603529E-01
395+5.617024E-01,
-5.951670E-01,
-3.992162E-01,
-3.370606E-01,
+1.000000E+00,
-4.563255E-01
396-4.812185E-01,
+6.668763E-01,
+4.134352E-01,
-2.603529E-01,
-4.563255E-01,
+1.000000E+00
398call setMatCopy(cov(
1:ndim,
1:ndim), rdpack, cor, rdpack, lowDia)
400+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
401-6.865154E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
402-3.722259E-01,
-4.175428E-02,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
403-4.555238E-01,
+3.215826E-01,
-3.474011E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00
404+5.617024E-01,
-5.951670E-01,
-3.992162E-01,
-3.370606E-01,
+1.000000E+00,
+0.000000E+00,
+0.000000E+00
405-4.812185E-01,
+6.668763E-01,
+4.134352E-01,
-2.603529E-01,
-4.563255E-01,
+1.000000E+00,
+0.000000E+00
406call setCov(cov(
1:ndim,
2:ndim
+1), uppDia, cov(
1:ndim,
1:ndim), lowDia, std)
408+1.000000E+00,
+4.900000E+01,
-1.441682E+01,
-2.605582E+00,
-2.550933E+01,
+1.179575E+01,
-2.694823E+01
409-6.865154E-01,
+1.000000E+00,
+9.000000E+00,
-1.252628E-01,
+7.717983E+00,
-5.356503E+00,
+1.600503E+01
410-3.722259E-01,
-4.175428E-02,
+1.000000E+00,
+1.000000E+00,
-2.779209E+00,
-1.197649E+00,
+3.307481E+00
411-4.555238E-01,
+3.215826E-01,
-3.474011E-01,
+1.000000E+00,
+6.400000E+01,
-8.089455E+00,
-1.666258E+01
412+5.617024E-01,
-5.951670E-01,
-3.992162E-01,
-3.370606E-01,
+1.000000E+00,
+9.000000E+00,
-1.095181E+01
413-4.812185E-01,
+6.668763E-01,
+4.134352E-01,
-2.603529E-01,
-4.563255E-01,
+1.000000E+00,
+6.400000E+01
416call setMatCopy(cov(
1:ndim,
2:ndim
+1), rdpack, cor, rdpack, uppDia)
418+0.000000E+00,
+1.000000E+00,
-6.865154E-01,
-3.722259E-01,
-4.555238E-01,
+5.617024E-01,
-4.812185E-01
419+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-4.175428E-02,
+3.215826E-01,
-5.951670E-01,
+6.668763E-01
420+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-3.474011E-01,
-3.992162E-01,
+4.134352E-01
421+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-3.370606E-01,
-2.603529E-01
422+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00,
-4.563255E-01
423+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+0.000000E+00,
+1.000000E+00
424call setCov(cov(
1:ndim,
1:ndim), lowDia, cov(
1:ndim,
2:ndim
+1), uppDia, std)
426+4.900000E+01,
+1.000000E+00,
-6.865154E-01,
-3.722259E-01,
-4.555238E-01,
+5.617024E-01,
-4.812185E-01
427-1.441682E+01,
+9.000000E+00,
+1.000000E+00,
-4.175428E-02,
+3.215826E-01,
-5.951670E-01,
+6.668763E-01
428-2.605582E+00,
-1.252628E-01,
+1.000000E+00,
+1.000000E+00,
-3.474011E-01,
-3.992162E-01,
+4.134352E-01
429-2.550933E+01,
+7.717983E+00,
-2.779209E+00,
+6.400000E+01,
+1.000000E+00,
-3.370606E-01,
-2.603529E-01
430+1.179575E+01,
-5.356503E+00,
-1.197649E+00,
-8.089455E+00,
+9.000000E+00,
+1.000000E+00,
-4.563255E-01
431-2.694823E+01,
+1.600503E+01,
+3.307481E+00,
-1.666258E+01,
-1.095181E+01,
+6.400000E+01,
+1.000000E+00
440ndim
= 2; nsam
= 10; dim
= 2
441sample
= reshape(
getUnifRand(
1,
20, ndim
* nsam), shape
= [ndim, nsam], order
= [
2,
1])
443+15.0000000,
+14.0000000,
+2.00000000,
+5.00000000,
+5.00000000,
+2.00000000,
+8.00000000,
+3.00000000,
+17.0000000,
+15.0000000
444+7.00000000,
+17.0000000,
+20.0000000,
+5.00000000,
+18.0000000,
+17.0000000,
+8.00000000,
+6.00000000,
+7.00000000,
+16.0000000
447+8.60000038,
+12.1000004
450+6.39999962,
+5.39999962,
-6.60000038,
-3.60000038,
-3.60000038,
-6.60000038,
-0.600000381,
-5.60000038,
+8.39999962,
+6.39999962
451-5.10000038,
+4.89999962,
+7.89999962,
-7.10000038,
+5.89999962,
+4.89999962,
-4.10000038,
-6.10000038,
-5.10000038,
+3.89999962
453call setCov(cov, uppDia, mean, sample, dim)
455+32.6399994,
-6.76000071
456+0.00000000,
+31.6900005
458call setCov(cov, uppDia, samShifted, dim)
460+32.6399994,
-6.76000071
461+0.00000000,
+31.6900005
464call setCov(cov, lowDia, mean, sample, dim)
466+32.6399994,
+0.00000000
467-6.76000071,
+31.6900005
469call setCov(cov, lowDia, samShifted, dim)
471+32.6399994,
+0.00000000
472-6.76000071,
+31.6900005
474'Compute the sample covariance along the first dimension.'
478call setCov(cov, uppDia, mean,
transpose(sample), dim)
480+32.6399994,
-6.76000071
481+0.00000000,
+31.6900005
483call setCov(cov, uppDia,
transpose(samShifted), dim)
485+32.6399994,
-6.76000071
486+0.00000000,
+31.6900005
489call setCov(cov, lowDia, mean,
transpose(sample), dim)
491+32.6399994,
+0.00000000
492-6.76000071,
+31.6900005
494call setCov(cov, lowDia,
transpose(samShifted), dim)
496+32.6399994,
+0.00000000
497-6.76000071,
+31.6900005
499'Compute the full sample covariance for a pair of time series.'
502call setCov(cov, mean, sample(
1,:), sample(
2,:))
504+32.6399994,
-6.76000071
505-6.76000071,
+31.6900005
507call setCov(cov, samShifted(
1,:), samShifted(
2,:))
509+32.6399994,
-6.76000071
510-6.76000071,
+31.6900005
519ndim
= 2; nsam
= 10; dim
= 2
520sample
= reshape(
getUnifRand(
1,
20, ndim
* nsam), shape
= [ndim, nsam], order
= [
2,
1])
522+13.0000000,
+17.0000000,
+17.0000000,
+8.00000000,
+12.0000000,
+12.0000000,
+4.00000000,
+12.0000000,
+11.0000000,
+4.00000000
523+6.00000000,
+14.0000000,
+10.0000000,
+10.0000000,
+12.0000000,
+3.00000000,
+7.00000000,
+13.0000000,
+7.00000000,
+2.00000000
527+7,
+5,
+4,
+1,
+4,
+9,
+10,
+8,
+6,
+5
528call setMean(mean, sample, dim, iweight, iweisum)
530+10.6779661,
+7.84745741
535+7,
+5,
+4,
+1,
+4,
+9,
+10,
+8,
+6,
+5
536call setMean(mean, sample, dim, rweight, rweisum)
538+10.6779661,
+7.84745741
548+2.32203388,
+6.32203388,
+6.32203388,
-2.67796612,
+1.32203388,
+1.32203388,
-6.67796612,
+1.32203388,
+0.322033882,
-6.67796612
549-1.84745741,
+6.15254259,
+2.15254259,
+2.15254259,
+4.15254259,
-4.84745741,
-0.847457409,
+5.15254259,
-0.847457409,
-5.84745741
551call setCov(cov, uppDia, mean, sample, dim, iweight, iweisum)
553+18.8284969,
+8.17121601
554+0.00000000,
+15.4513073
556call setCov(cov, uppDia, samShifted, dim, iweight,
sum(iweight))
558+18.8284969,
+8.17121601
559+0.00000000,
+15.4513073
562call setCov(cov, lowDia, mean, sample, dim, iweight, iweisum)
564+18.8284969,
+0.00000000
565+8.17121601,
+15.4513073
567call setCov(cov, lowDia, samShifted, dim, iweight,
sum(iweight))
569+18.8284969,
+0.00000000
570+8.17121601,
+15.4513073
572'Compute the sample covariance along the first dimension.'
576call setCov(cov, uppDia, mean,
transpose(sample), dim, iweight, iweisum)
578+18.8284969,
+8.17121506
579+0.00000000,
+15.4513063
581call setCov(cov, uppDia,
transpose(samShifted), dim, iweight,
sum(iweight))
583+18.8284969,
+8.17121506
584+0.00000000,
+15.4513063
587call setCov(cov, lowDia, mean,
transpose(sample), dim, iweight, iweisum)
589+18.8284969,
+0.00000000
590+8.17121506,
+15.4513063
592call setCov(cov, lowDia,
transpose(samShifted), dim, iweight,
sum(iweight))
594+18.8284969,
+0.00000000
595+8.17121506,
+15.4513063
597'Compute the full sample covariance for a pair of time series.'
600call setCov(cov, mean, sample(
1,:), sample(
2,:), iweight, iweisum)
602+18.8284969,
+8.17121601
603+8.17121601,
+15.4513073
605call setCov(cov, samShifted(
1,:), samShifted(
2,:), iweight,
sum(iweight))
607+18.8284969,
+8.17121601
608+8.17121601,
+15.4513073
618+2.32203388,
+6.32203388,
+6.32203388,
-2.67796612,
+1.32203388,
+1.32203388,
-6.67796612,
+1.32203388,
+0.322033882,
-6.67796612
619-1.84745741,
+6.15254259,
+2.15254259,
+2.15254259,
+4.15254259,
-4.84745741,
-0.847457409,
+5.15254259,
-0.847457409,
-5.84745741
621call setCov(cov, uppDia, mean, sample, dim, rweight, rweisum)
623+18.8284969,
+8.17121601
624+0.00000000,
+15.4513073
626call setCov(cov, uppDia, samShifted, dim, rweight,
sum(rweight))
628+18.8284969,
+8.17121601
629+0.00000000,
+15.4513073
632call setCov(cov, lowDia, mean, sample, dim, rweight, rweisum)
634+18.8284969,
+0.00000000
635+8.17121601,
+15.4513073
637call setCov(cov, lowDia, samShifted, dim, rweight,
sum(rweight))
639+18.8284969,
+0.00000000
640+8.17121601,
+15.4513073
642'Compute the sample covariance along the first dimension.'
646call setCov(cov, uppDia, mean,
transpose(sample), dim, rweight, rweisum)
648+18.8284969,
+8.17121506
649+0.00000000,
+15.4513063
651call setCov(cov, uppDia,
transpose(samShifted), dim, rweight,
sum(rweight))
653+18.8284969,
+8.17121506
654+0.00000000,
+15.4513063
657call setCov(cov, lowDia, mean,
transpose(sample), dim, rweight, rweisum)
659+18.8284969,
+0.00000000
660+8.17121506,
+15.4513063
662call setCov(cov, lowDia,
transpose(samShifted), dim, rweight,
sum(rweight))
664+18.8284969,
+0.00000000
665+8.17121506,
+15.4513063
667'Compute the full sample covariance for a pair of time series.'
670call setCov(cov, mean, sample(
1,:), sample(
2,:), rweight, rweisum)
672+18.8284969,
+8.17121601
673+8.17121601,
+15.4513073
675call setCov(cov, samShifted(
1,:), samShifted(
2,:), rweight,
sum(rweight))
677+18.8284969,
+8.17121601
678+8.17121601,
+15.4513073