19 class Uniform_ :
public RandomDist<Real>
21 typedef RandomDist<Real> Super;
49 union {
float f;
uint32 i; } res;
50 #define FLOAT_SIG_MASK 0x007FFFFFU
51 #define FLOAT_EXP_ZERO 0x3F800000U
59 union {
double f;
uint64 i; } res;
60 #define DOUBLE_SIG_MASK 0x000FFFFFFFFFFFFFULL
61 #define DOUBLE_EXP_ZERO 0x3FF0000000000000ULL
69 union {
double f;
uint64 i; } res;
Double_::Real Double
double type
Definition: Double.h:60
Float_::Real Float
float type
Definition: Float.h:61
Random number generator interface.
Definition: Gen.h:11
#define error_(msg)
Throw AssertionFailure with a message. Message ignored in final mode.
Definition: Debug.h:44
unsigned int uint32
Definition: Core.h:16
Uniform_< Real > Uniform
Definition: Uniform.h:75
unsigned long long uint64
Definition: Core.h:22
RandomGen & getGen() const
Get random generator.
Definition: Dist.h:86
Uniform_< Double > Uniform_d
Definition: Uniform.h:77
#define assert(...)
Forwards to assert_#args. See assert_1(), assert_2().
Definition: Debug.h:24
static Int nextStd(RandomGen &gen)
Static function for standard distribution. Generate a random variate within full integer range (up to...
Definition: Discrete.h:31
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
static Num sqr(Num x)
Square.
Definition: Alge.h:60
static bool isInRange(Num val, Num2 min, Num3 max)
Check if value is within min/max inclusive range.
Definition: Alge.h:112
Uniform_< Float > Uniform_f
Definition: Uniform.h:76
Global Honeycomb namespace.
Quad_::Real Quad
float128 type
Definition: Quad.h:59