exponent -package:hedgehog

exponent corresponds to the second component of decodeFloat. exponent 0 = 0 and for finite nonzero x, exponent x = snd (decodeFloat x) + floatDigits x. If x is a finite floating-point number, it is equal in value to significand x * b ^^ exponent x, where b is the floating-point radix. The behaviour is unspecified on infinite or NaN values.
Scientific notation (e.g. 2.3e123).
An exponent is an exponent letter (E, D) and a signed integer.
Display in scientific notation, e.g. 1.234e-5
An exponent.
exponentiating n = iso (**n) (**recip n)
Note: This errors for n = 0
>>> au (_Wrapping Sum . from (exponentiating 2)) (foldMapOf each) (3,4) == 5
True
Generate an exponentially distributed random variate.
Create an exponential distribution.
Create an exponential distribution.
Grow delay exponentially each iteration. Each delay will increase by a factor of two.
exponentiating n = iso (**n) (**recip n)
Note: This errors for n = 0
>>> au (coerced1 @Sum % re (exponentiating 2)) (foldMapOf each) (3,4) == 5
True
Tests the following properties: Note that this does not test associativity. Make sure to use semigroupLaws in addition to this set of laws.
A random variable which samples from the exponential distribution. exponential mu is an exponential random variable with mean mu. This can alternatively be viewed as an exponential random variable with parameter lambda = 1 / mu.
A random variable transformer which samples from the exponential distribution. exponentialT mu is an exponential random variable with mean mu. This can alternatively be viewed as an exponential random variable with parameter lambda = 1 / mu.
Create count buckets, where the lowest bucket has an upper bound of start and each bucket's upper bound is factor times the previous bucket's upper bound. Use this to create buckets for histogram.