Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

vRngBeta

Generates beta distributed random values.

Syntax

status
=
vsrngbeta
(
method
,
stream
,
n
,
r
,
p
,
q
,
a
,
beta
)
status
=
vdrngbeta
(
method
,
stream
,
n
,
r
,
p
,
q
,
a
,
beta
)
Include Files
  • mkl.fi
    ,
    mkl_vsl.f90
Input Parameters
Name
Type
Description
method
INTEGER
,
INTENT(IN)
Generation method. The specific values are as follows:
VSL_RNG_METHOD_BETA_CJA
VSL_RNG_METHOD_BETA_CJA_ACCURATE
See brief description of the method
CJA
in Table
"Values of
<
method
>
in
method
parameter"
stream
TYPE (VSL_STREAM_STATE)
,
INTENT(IN)
Descriptor of the stream state structure
n
INTEGER
,
INTENT(IN)
Number of random values to be generated
p
DOUBLE PRECISION
for
vdrngbeta
REAL
(KIND=4)
,
INTENT(IN)
for
vsrngbeta
REAL
(KIND=8)
,
INTENT(IN)
for
vdrngbeta
Shape
p
q
DOUBLE PRECISION
for
vdrngbeta
REAL
(KIND=4)
,
INTENT(IN)
for
vsrngbeta
REAL
(KIND=8)
,
INTENT(IN)
for
vdrngbeta
Shape
q
a
DOUBLE PRECISION
for
vdrngbeta
REAL
(KIND=4)
,
INTENT(IN)
for
vsrngbeta
REAL
(KIND=8)
,
INTENT(IN)
for
vdrngbeta
Displacement
a
.
beta
DOUBLE PRECISION
for
vdrngbeta
REAL
(KIND=4)
,
INTENT(IN)
for
vsrngbeta
REAL
(KIND=8)
,
INTENT(IN)
for
vdrngbeta
Scalefactor
β
.
Output Parameters
Name
Type
Description
r
DOUBLE PRECISION
for
vdrngbeta
REAL
(KIND=4)
,
INTENT(OUT)
for
vsrngbeta
REAL
(KIND=8)
,
INTENT(OUT)
for
vdrngbeta
Vector of
n
random numbers with beta distribution
Description
The
vRngBeta
function generates random numbers with beta distribution that has shape parameters
p
and
q
, displacement
a
, and scale parameter
β
, where
p
,
q
,
a
, and
β
R
;
p
> 0,
q
> 0,