Select a single (or multiple) element(s) from the input array of intrinsic type of arbitrary kind randomly uniformly or optionally according to the specified Probability Mass Function (PMF) of the input array
.
More...
Select a single (or multiple) element(s) from the input array of intrinsic type of arbitrary kind randomly uniformly or optionally according to the specified Probability Mass Function (PMF) of the input array
.
- Parameters
-
[in] | array | : The input contiguous array of non-zero size of shape (:) of either
-
type
character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU), or
-
type
logical of kind any supported by the processor (e.g., LK), or
-
type
integer of kind any supported by the processor (e.g., IK, IK8, IK16, IK32, or IK64), or
-
type
complex of kind any supported by the processor (e.g., CK, CK32, CK64, or CK128), or
-
type
real of kind any supported by the processor (e.g., RK, RK32, RK64, or RK128),
or a scalar of,
-
type
character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) of non-zero length,
-
type
integer of kind any supported by the processor (e.g., IK, IK8, IK16, IK32, or IK64) of non-zero value,
whose element(s) will be selected randomly and returned in the output choice .
The input array must be of non-zero length or size (unless it is a scalar non-negative integer of arbitrary kind).
|
[in] | s1 | : The input non-negative scalar integer of default kind IK, representing the number of output choices (i.e., elements selected from the input array ).
(optional. If missing, the output is a scalar (of rank 0 ).) |
[in] | unique | : The input scalar logical of default kind LK.
If .true. , the elements of the output choice will be uniquely selected from the input array .
(optional, default = .false._LK . It can be present if and only if the input argument s1 is also present.) |
- Returns
choice
: The output object of the same type and kind as the input array
whose value is randomly selected from the elements of array
.
-
It is a scalar (of rank
0
, or a scalar character
of length 1
) if the input argument s1
is missing.
-
It is an array of size
s1
(or a scalar character
of length s1
) if the input argument s1
is present.
Possible calling interfaces ⛓
choice(
1:s1)
= getChoice(array, s1, unique
= unique)
Select a single (or multiple) element(s) from the input array of intrinsic type of arbitrary kind ran...
This module contains procedures and generic interfaces for selecting uniformly-distributed or arbitra...
- Warning
- The condition
0 < size(array)
for non-character
input array
or 0 < len(array)
for character
input array
must hold.
These conditions are verified only if the library is built with the preprocessor macro CHECK_ENABLED=1
.
- Developer Remark:
- The choice of the input argument name
s1
is deliberate to allow future expansion of the interface to output choice
of higher rank than 1
.
- Warning
- The condition
0 < size(array)
for non-character
input array
or 0 < len(array)
for character
input array
must hold.
The condition 0 < size(choice)
for non-character
input choice
or 0 < len(choice)
for character
input choice
must hold.
The condition len(choice) == len(array)
for an input choice
vector of character
must hold.
These conditions are verified only if the library is built with the preprocessor macro CHECK_ENABLED=1
.
- See also
- isHead
getChange
setChange
getChoice
setChoice
getUnifRand
setUnifRand
getShuffled
setShuffled
getRemapped
setRemapped
Example usage ⛓
15 integer(IK) :: count, itry, ntry
= 10
16 type(display_type) :: disp
20 character(:),
allocatable :: choice, array
24 call disp%show(
"count = getUnifRand(4, 10)")
26 call disp%show(
"array = getUnifRand(repeat('A', count), repeat('Z', count)) ! generate random array for illustration.")
27 array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
29 call disp%show( array, deliml
= SK_
"""" )
30 call disp%show(
"choice = getChoice(array)")
33 call disp%show( choice, deliml
= SK_
"""" )
34 call disp%show(
"count = getUnifRand(1, len(array))")
38 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
41 call disp%show( choice, deliml
= SK_
"""" )
42 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
43 choice
= getChoice(array, count, unique
= .true._LK)
45 call disp%show( choice, deliml
= SK_
"""" )
51 character(
2),
allocatable :: choice(:), array(:)
55 call disp%show(
"count = getUnifRand(4, 10)")
57 call disp%show(
"array = getUnifRand('AA', 'ZZ', count) ! generate random array for illustration.")
60 call disp%show( array, deliml
= SK_
"""" )
61 call disp%show(
"choice = [getChoice(array)]")
64 call disp%show( choice, deliml
= SK_
"""" )
65 call disp%show(
"count = getUnifRand(1, len(array))")
69 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
72 call disp%show( choice, deliml
= SK_
"""" )
73 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
74 choice
= getChoice(array, count, unique
= .true._LK)
76 call disp%show( choice, deliml
= SK_
"""" )
82 integer,
allocatable :: choice(:), array(:)
86 call disp%show(
"array = getUnifRand(1, 20, getUnifRand(4, 10)) ! generate random array for illustration.")
90 call disp%show(
"choice = [getChoice(array)]")
94 call disp%show(
"count = getUnifRand(1, size(array))")
98 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
102 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
103 choice
= getChoice(array, count, unique
= .true._LK)
111 logical,
allocatable :: choice(:), array(:)
115 call disp%show(
"array = getUnifRand(.false., .true., getUnifRand(4, 10)) ! generate random array for illustration.")
119 call disp%show(
"choice = [getChoice(array)]")
123 call disp%show(
"count = getUnifRand(1, size(array))")
127 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
131 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
132 choice
= getChoice(array, count, unique
= .true._LK)
140 complex,
allocatable :: choice(:), array(:)
144 call disp%show(
"array = getUnifRand((0., 0.), (1., 1.), getUnifRand(4, 10)) ! generate random array for illustration.")
148 call disp%show(
"choice = [getChoice(array)]")
152 call disp%show(
"count = getUnifRand(1, size(array))")
156 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
160 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
161 choice
= getChoice(array, count, unique
= .true._LK)
169 real,
allocatable :: choice(:), array(:)
173 call disp%show(
"array = getUnifRand(0., 1., getUnifRand(4, 10)) ! generate random array for illustration.")
177 call disp%show(
"choice = [getChoice(array)]")
181 call disp%show(
"count = getUnifRand(1, size(array))")
185 call disp%show(
"choice = getChoice(array, count) ! draw randomly only `count` elements with replacement.")
189 call disp%show(
"choice = getChoice(array, count, unique = .true._LK) ! draw randomly only `count` elements without replacement.")
190 choice
= getChoice(array, count, unique
= .true._LK)
Generate minimally-spaced character, integer, real sequences or sequences at fixed intervals of size ...
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.
This module contains procedures and generic interfaces for generating ranges of discrete character,...
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 RK
The default real kind in the ParaMonte library: real64 in Fortran, c_double in C-Fortran Interoperati...
integer, parameter LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
integer, parameter CK
The default complex kind in the ParaMonte library: real64 in Fortran, c_double_complex in C-Fortran I...
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...
Generate and return an object of type display_type.
Example Unix compile command via Intel ifort
compiler ⛓
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example Windows Batch compile command via Intel ifort
compiler ⛓
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
Example Unix / MinGW compile command via GNU gfortran
compiler ⛓
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example output ⛓
3array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
15choice
= getChoice(array, count, unique
= .true._LK)
20array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
32choice
= getChoice(array, count, unique
= .true._LK)
37array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
49choice
= getChoice(array, count, unique
= .true._LK)
54array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
66choice
= getChoice(array, count, unique
= .true._LK)
71array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
83choice
= getChoice(array, count, unique
= .true._LK)
88array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
100choice
= getChoice(array, count, unique
= .true._LK)
105array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
117choice
= getChoice(array, count, unique
= .true._LK)
122array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
134choice
= getChoice(array, count, unique
= .true._LK)
139array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
151choice
= getChoice(array, count, unique
= .true._LK)
156array
= getUnifRand(
repeat(
'A', count),
repeat(
'Z', count))
168choice
= getChoice(array, count, unique
= .true._LK)
175"NM",
"WH",
"XZ",
"MD",
"HY",
"BB",
"UC",
"KI"
185choice
= getChoice(array, count, unique
= .true._LK)
192"EP",
"QL",
"RB",
"CI",
"CP",
"MG",
"HX"
202choice
= getChoice(array, count, unique
= .true._LK)
209"DL",
"CL",
"ZI",
"QK",
"TZ",
"ZV",
"XC"
219choice
= getChoice(array, count, unique
= .true._LK)
226"DC",
"OI",
"SB",
"XE",
"GB",
"BN",
"CO"
236choice
= getChoice(array, count, unique
= .true._LK)
243"CS",
"LL",
"MH",
"ZQ",
"PJ",
"NA",
"MA",
"KV"
253choice
= getChoice(array, count, unique
= .true._LK)
260"CD",
"DL",
"XV",
"IS",
"VR",
"TP",
"WP",
"XJ",
"MV"
270choice
= getChoice(array, count, unique
= .true._LK)
277"KH",
"JN",
"JT",
"LR",
"HK",
"KR",
"EJ",
"HM",
"UW",
"PE"
287choice
= getChoice(array, count, unique
= .true._LK)
294"JD",
"DA",
"AS",
"AG",
"LB",
"PX",
"ON",
"OH"
304choice
= getChoice(array, count, unique
= .true._LK)
311"TA",
"WN",
"HC",
"RQ",
"DY",
"TS",
"TO",
"RL"
321choice
= getChoice(array, count, unique
= .true._LK)
328"WB",
"ZK",
"XG",
"MY",
"ZS",
"YF",
"KZ",
"XF",
"KY"
338choice
= getChoice(array, count, unique
= .true._LK)
344+2,
+3,
+4,
+18,
+3,
+14,
+4,
+13
354choice
= getChoice(array, count, unique
= .true._LK)
360+5,
+2,
+5,
+14,
+12,
+12,
+5,
+19
370choice
= getChoice(array, count, unique
= .true._LK)
376+19,
+5,
+19,
+12,
+4,
+15
386choice
= getChoice(array, count, unique
= .true._LK)
392+8,
+4,
+10,
+12,
+5,
+13,
+19,
+8
402choice
= getChoice(array, count, unique
= .true._LK)
418choice
= getChoice(array, count, unique
= .true._LK)
424+18,
+3,
+8,
+15,
+6,
+6,
+17,
+20,
+3,
+19
433+8,
+3,
+3,
+3,
+3,
+6,
+3,
+6,
+6
434choice
= getChoice(array, count, unique
= .true._LK)
436+3,
+17,
+8,
+6,
+20,
+19,
+15,
+6,
+3
440+6,
+17,
+4,
+13,
+7,
+6,
+7,
+20,
+13
450choice
= getChoice(array, count, unique
= .true._LK)
466choice
= getChoice(array, count, unique
= .true._LK)
472+1,
+17,
+15,
+20,
+5,
+5,
+10,
+8
482choice
= getChoice(array, count, unique
= .true._LK)
488+2,
+10,
+5,
+17,
+17,
+3,
+18,
+14
497+17,
+17,
+5,
+17,
+10,
+2
498choice
= getChoice(array, count, unique
= .true._LK)
500+17,
+2,
+10,
+3,
+17,
+5
514choice
= getChoice(array, count, unique
= .true._LK)
530choice
= getChoice(array, count, unique
= .true._LK)
536F, T, T, F, T, F, F, T
546choice
= getChoice(array, count, unique
= .true._LK)
562choice
= getChoice(array, count, unique
= .true._LK)
578choice
= getChoice(array, count, unique
= .true._LK)
594choice
= getChoice(array, count, unique
= .true._LK)
600F, F, T, T, T, T, F, F, T
610choice
= getChoice(array, count, unique
= .true._LK)
626choice
= getChoice(array, count, unique
= .true._LK)
632F, F, T, T, T, T, F, T
642choice
= getChoice(array, count, unique
= .true._LK)
648T, F, F, T, T, T, T, T, T, T
657F, T, T, T, T, F, T, F, T
658choice
= getChoice(array, count, unique
= .true._LK)
660T, T, F, F, T, T, T, T, T
664(
+0.829858661,
+0.267763913), (
+0.529085100,
+0.349018037), (
+0.849642456,
+0.321421742), (
+0.302778840,
+0.873203993), (
+0.866684139,
+0.681529999), (
+0.929947495,
+0.692473829), (
+0.693464875E-1,
+0.963464797), (
+0.139425695,
+0.190955937), (
+0.836350083,
+0.681445301), (
+0.975634813,
+0.921015620)
667(
+0.836350083,
+0.681445301)
673(
+0.829858661,
+0.267763913), (
+0.836350083,
+0.681445301), (
+0.866684139,
+0.681529999), (
+0.829858661,
+0.267763913), (
+0.975634813,
+0.921015620)
674choice
= getChoice(array, count, unique
= .true._LK)
676(
+0.975634813,
+0.921015620), (
+0.139425695,
+0.190955937), (
+0.529085100,
+0.349018037), (
+0.302778840,
+0.873203993), (
+0.849642456,
+0.321421742)
680(
+0.713855803,
+0.851756096), (
+0.867268562,
+0.924162507), (
+0.382166445,
+0.117221475E-1), (
+0.111862183,
+0.299321115), (
+0.845844805,
+0.692292690)
683(
+0.111862183,
+0.299321115)
689(
+0.713855803,
+0.851756096), (
+0.713855803,
+0.851756096), (
+0.845844805,
+0.692292690)
690choice
= getChoice(array, count, unique
= .true._LK)
692(
+0.111862183,
+0.299321115), (
+0.382166445,
+0.117221475E-1), (
+0.867268562,
+0.924162507)
696(
+0.115364313,
+0.985218287), (
+0.651735365,
+0.787932277), (
+0.173790276,
+0.860484958), (
+0.718512714,
+0.648005426), (
+0.567487240,
+0.820411205)
699(
+0.718512714,
+0.648005426)
705(
+0.115364313,
+0.985218287), (
+0.718512714,
+0.648005426)
706choice
= getChoice(array, count, unique
= .true._LK)
708(
+0.651735365,
+0.787932277), (
+0.115364313,
+0.985218287)
712(
+0.221827686,
+0.474248886), (
+0.435820341,
+0.203027129), (
+0.340126574,
+0.419395804), (
+0.642032564,
+0.903647542E-1), (
+0.413459003,
+0.521412075), (
+0.367848158,
+0.555348873), (
+0.228453219,
+0.623595297), (
+0.261168122,
+0.752192736), (
+0.374186456,
+0.241539478E-1)
715(
+0.221827686,
+0.474248886)
721(
+0.367848158,
+0.555348873), (
+0.261168122,
+0.752192736), (
+0.228453219,
+0.623595297), (
+0.340126574,
+0.419395804), (
+0.340126574,
+0.419395804), (
+0.261168122,
+0.752192736)
722choice
= getChoice(array, count, unique
= .true._LK)
724(
+0.221827686,
+0.474248886), (
+0.413459003,
+0.521412075), (
+0.367848158,
+0.555348873), (
+0.340126574,
+0.419395804), (
+0.435820341,
+0.203027129), (
+0.374186456,
+0.241539478E-1)
728(
+0.812198997,
+0.718210340E-1), (
+0.431903005,
+0.778924167), (
+0.292096615,
+0.904151499), (
+0.151786983,
+0.845342994), (
+0.974624872,
+0.334650993), (
+0.634096265E-1,
+0.429285347), (
+0.942199230,
+0.578120351), (
+0.297524393,
+0.229313552), (
+0.765276730,
+0.158325970)
731(
+0.151786983,
+0.845342994)
737(
+0.942199230,
+0.578120351), (
+0.765276730,
+0.158325970), (
+0.634096265E-1,
+0.429285347), (
+0.292096615,
+0.904151499), (
+0.974624872,
+0.334650993), (
+0.942199230,
+0.578120351), (
+0.431903005,
+0.778924167)
738choice
= getChoice(array, count, unique
= .true._LK)
740(
+0.634096265E-1,
+0.429285347), (
+0.942199230,
+0.578120351), (
+0.151786983,
+0.845342994), (
+0.765276730,
+0.158325970), (
+0.431903005,
+0.778924167), (
+0.297524393,
+0.229313552), (
+0.812198997,
+0.718210340E-1)
744(
+0.683761597,
+0.580815494), (
+0.753095746E-1,
+0.754745126), (
+0.875243425,
+0.799530566), (
+0.444758415,
+0.420462489E-1), (
+0.352957249E-1,
+0.381797194), (
+0.298699260,
+0.542954147)
747(
+0.683761597,
+0.580815494)
753(
+0.444758415,
+0.420462489E-1), (
+0.683761597,
+0.580815494), (
+0.683761597,
+0.580815494), (
+0.352957249E-1,
+0.381797194), (
+0.683761597,
+0.580815494), (
+0.753095746E-1,
+0.754745126)
754choice
= getChoice(array, count, unique
= .true._LK)
756(
+0.444758415,
+0.420462489E-1), (
+0.753095746E-1,
+0.754745126), (
+0.352957249E-1,
+0.381797194), (
+0.683761597,
+0.580815494), (
+0.298699260,
+0.542954147), (
+0.875243425,
+0.799530566)
760(
+0.501194656,
+0.252003491), (
+0.134201169,
+0.379255474), (
+0.956518412,
+0.103645444), (
+0.668818831,
+0.380728304), (
+0.691480041E-1,
+0.498371899), (
+0.287643671,
+0.631754339), (
+0.257732272E-1,
+0.561269462), (
+0.612690449,
+0.274081409)
763(
+0.612690449,
+0.274081409)
769(
+0.501194656,
+0.252003491), (
+0.287643671,
+0.631754339), (
+0.134201169,
+0.379255474), (
+0.612690449,
+0.274081409), (
+0.668818831,
+0.380728304), (
+0.501194656,
+0.252003491)
770choice
= getChoice(array, count, unique
= .true._LK)
772(
+0.956518412,
+0.103645444), (
+0.668818831,
+0.380728304), (
+0.501194656,
+0.252003491), (
+0.134201169,
+0.379255474), (
+0.691480041E-1,
+0.498371899), (
+0.287643671,
+0.631754339)
776(
+0.908526182,
+0.994800985), (
+0.100652635,
+0.108727276), (
+0.833495796,
+0.822975993), (
+0.713514924,
+0.565263927), (
+0.924299181,
+0.252061963), (
+0.352035582,
+0.570716619), (
+0.471750498E-1,
+0.945010543), (
+0.754606903,
+0.272570968)
779(
+0.908526182,
+0.994800985)
785(
+0.100652635,
+0.108727276), (
+0.754606903,
+0.272570968), (
+0.754606903,
+0.272570968), (
+0.833495796,
+0.822975993), (
+0.713514924,
+0.565263927), (
+0.471750498E-1,
+0.945010543)
786choice
= getChoice(array, count, unique
= .true._LK)
788(
+0.713514924,
+0.565263927), (
+0.924299181,
+0.252061963), (
+0.100652635,
+0.108727276), (
+0.471750498E-1,
+0.945010543), (
+0.754606903,
+0.272570968), (
+0.908526182,
+0.994800985)
792(
+0.829946935,
+0.486330330), (
+0.340456784,
+0.328087866), (
+0.410145640,
+0.572275519), (
+0.366678119,
+0.580553472), (
+0.404899716,
+0.679876208)
795(
+0.404899716,
+0.679876208)
801(
+0.404899716,
+0.679876208), (
+0.829946935,
+0.486330330)
802choice
= getChoice(array, count, unique
= .true._LK)
804(
+0.410145640,
+0.572275519), (
+0.829946935,
+0.486330330)
808(
+0.726043463,
+0.154740989), (
+0.874337792,
+0.586871326), (
+0.478135347E-1,
+0.751857758), (
+0.616714716,
+0.138562500), (
+0.591071427,
+0.193544030)
811(
+0.726043463,
+0.154740989)
817(
+0.874337792,
+0.586871326)
818choice
= getChoice(array, count, unique
= .true._LK)
820(
+0.874337792,
+0.586871326)
824+0.151437700,
+0.713721275,
+0.871247172,
+0.574129641,
+0.891952515E-1,
+0.475979388,
+0.662150145,
+0.773222148,
+0.460660696,
+0.845793903
833+0.773222148,
+0.713721275
834choice
= getChoice(array, count, unique
= .true._LK)
836+0.574129641,
+0.151437700
840+0.541724741,
+0.999411762,
+0.410857558,
+0.588201344,
+0.785782039
850choice
= getChoice(array, count, unique
= .true._LK)
856+0.607055664,
+0.998507917,
+0.912506819,
+0.925973356,
+0.847198069,
+0.834653616,
+0.187986493,
+0.725230157
865+0.912506819,
+0.725230157,
+0.925973356,
+0.187986493,
+0.925973356
866choice
= getChoice(array, count, unique
= .true._LK)
868+0.998507917,
+0.725230157,
+0.607055664,
+0.187986493,
+0.834653616
872+0.174621582,
+0.750187159,
+0.167156518,
+0.315299988,
+0.288544953,
+0.312615275,
+0.919840395,
+0.723774314,
+0.707612574
881+0.174621582,
+0.919840395,
+0.919840395,
+0.167156518
882choice
= getChoice(array, count, unique
= .true._LK)
884+0.312615275,
+0.174621582,
+0.723774314,
+0.315299988
888+0.568120480E-1,
+0.602263987,
+0.509037375,
+0.220255017,
+0.679853320,
+0.836914778,
+0.815643430
897+0.836914778,
+0.815643430,
+0.509037375,
+0.815643430,
+0.220255017,
+0.602263987
898choice
= getChoice(array, count, unique
= .true._LK)
900+0.568120480E-1,
+0.509037375,
+0.679853320,
+0.815643430,
+0.220255017,
+0.602263987
904+0.423043132,
+0.622403324,
+0.729285359,
+0.225710630,
+0.249660671,
+0.371677876E-1,
+0.273165226,
+0.829929769,
+0.717950046
913+0.273165226,
+0.225710630,
+0.371677876E-1,
+0.371677876E-1,
+0.225710630
914choice
= getChoice(array, count, unique
= .true._LK)
916+0.371677876E-1,
+0.423043132,
+0.225710630,
+0.829929769,
+0.249660671
920+0.654447138,
+0.333581388,
+0.365495622,
+0.274104476E-1,
+0.752946019,
+0.409405589,
+0.186376750
929+0.409405589,
+0.409405589,
+0.409405589,
+0.333581388
930choice
= getChoice(array, count, unique
= .true._LK)
932+0.274104476E-1,
+0.365495622,
+0.333581388,
+0.409405589
936+0.229230821,
+0.122754157,
+0.774231911,
+0.391770005,
+0.274358511,
+0.213502169,
+0.130721450,
+0.330404758,
+0.529936612
945+0.130721450,
+0.122754157,
+0.130721450,
+0.229230821,
+0.229230821,
+0.229230821,
+0.213502169
946choice
= getChoice(array, count, unique
= .true._LK)
948+0.330404758,
+0.774231911,
+0.391770005,
+0.213502169,
+0.274358511,
+0.130721450,
+0.229230821
952+0.338760376,
+0.705824494,
+0.387342572E-1,
+0.472192466,
+0.523252845,
+0.769931793,
+0.189214647,
+0.952345788,
+0.685299873,
+0.127488852
961+0.189214647,
+0.705824494,
+0.472192466,
+0.387342572E-1,
+0.472192466,
+0.338760376,
+0.387342572E-1
962choice
= getChoice(array, count, unique
= .true._LK)
964+0.705824494,
+0.472192466,
+0.952345788,
+0.387342572E-1,
+0.685299873,
+0.523252845,
+0.189214647
968+0.994390547,
+0.217241764,
+0.109921217,
+0.246933997,
+0.682119727,
+0.653892875
977+0.246933997,
+0.653892875,
+0.246933997,
+0.682119727
978choice
= getChoice(array, count, unique
= .true._LK)
980+0.653892875,
+0.994390547,
+0.246933997,
+0.217241764
- Test:
- test_pm_arrayChoice
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
-
If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
-
If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
- Copyright
- Computational Data Science Lab
- Author:
- Amir Shahmoradi, Monday March 6, 2017, 3:22 pm, Institute for Computational Engineering and Sciences (ICES), The University of Texas at Austin.
Definition at line 137 of file pm_arrayChoice.F90.