4222 if (_Par0._Alpha < 1)
4228 while ((_Vx =
_NRAND(_Eng, _Ty)) == 0)
4230 if (_Ux < _Par0._Px)
4232 _Xx =
_CSTD pow(_Vx, _Ty(1) / _Par0._Alpha);
4238 _Qx =
_CSTD pow(_Xx, _Par0._Alpha - 1);
4240 if (
_NRAND(_Eng, _Ty) < _Qx)
4241 return (_Par0._Beta * _Xx);
4244 else if (_Par0._Alpha == 1)
4245 return (_Par0._Beta * _Par0._Exp(_Eng));
4246 else if ((_Count = (
int)_Par0._Alpha) == _Par0._Alpha
4252 while ((_Ux =
_NRAND(_Eng, _Ty)) == 0)
4256 return (_Par0._Beta * -
_CSTD log(_Yx));
4263 _Xx = _Par0._Sqrt * _Yx + _Par0._Alpha - 1;
4265 _NRAND(_Eng, _Ty) <= (1 + _Yx * _Yx)
4267 *
_CSTD log(_Xx / (_Par0._Alpha - 1))
4268 - _Par0._Sqrt * _Yx))
4269 return (_Par0._Beta * _Xx);
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:74
static const long double _Pi
Definition: random:62
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
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