3981         if (_Par0._Alpha < 1)
 
 3987                 while ((_Vx = 
_NRAND(_Eng, _Ty)) == 0)
 
 3989                 if (_Ux < _Par0._Px)
 
 3991                     _Xx = 
_CSTD pow(_Vx, _Ty(1) / _Par0._Alpha);
 
 3997                     _Qx = 
_CSTD pow(_Xx, _Par0._Alpha - 1);
 
 3999                 if (
_NRAND(_Eng, _Ty) < _Qx)
 
 4000                     return (_Par0._Beta * _Xx);
 
 4003         else if (_Par0._Alpha == 1)
 
 4004             return (_Par0._Beta * _Par0._Exp(_Eng));
 
 4005         else if ((_Count = (
int)_Par0._Alpha) == _Par0._Alpha
 
 4011                 while ((_Ux = 
_NRAND(_Eng, _Ty)) == 0)
 
 4015             return (_Par0._Beta * -
_CSTD log(_Yx));
 
 4022                 _Xx = _Par0._Sqrt * _Yx + _Par0._Alpha - 1;
 
 4024                     _NRAND(_Eng, _Ty) <= (1 + _Yx * _Yx)
 
 4026                         * 
_CSTD log(_Xx / (_Par0._Alpha - 1))
 
 4027                             - _Par0._Sqrt * _Yx))
 
 4028                     return (_Par0._Beta * _Xx);
 
constexpr long double _Pi
Definition: random:100
 
float exp(float _X) __GPU_ONLY
Calculates the base-e exponential of the argument 
Definition: amp_math.h:471
 
float log(float _X) __GPU_ONLY
Calculates the base-e logarithm of the argument 
Definition: amp_math.h:774
 
#define _NRAND(eng, resty)
Definition: random:345
 
_Diff _Count
Definition: algorithm:1941
 
#define _CSTD
Definition: yvals.h:570
 
float tan(float _X) __GPU_ONLY
Calculates the tangent value of the argument 
Definition: amp_math.h:1128
 
float pow(float _X, float _Y) __GPU_ONLY
Calculates _X raised to the power of _Y 
Definition: amp_math.h:898