exponent -package:hedgehog
base Prelude GHC.Float,
base-compat Prelude.Compat,
protolude Protolude Protolude.Base,
rio RIO.Prelude,
base-prelude BasePrelude,
classy-prelude ClassyPrelude,
Cabal-syntax Distribution.Compat.Prelude,
basic-prelude CorePrelude,
numhask NumHask.Prelude,
clash-prelude Clash.HaskellPrelude,
ghc-lib-parser GHC.Prelude.Basic,
prelude-compat Prelude2010,
ghc-internal GHC.Internal.Float,
dimensional Numeric.Units.Dimensional.Prelude,
rebase Rebase.Prelude,
mixed-types-num Numeric.MixedTypes.PreludeHiding,
xmonad-contrib XMonad.Config.Prime,
constrained-categories Control.Category.Constrained.Prelude Control.Category.Hask,
copilot-language Copilot.Language.Prelude,
LambdaHack Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
faktory Faktory.Prelude,
vcr Imports,
verset Verset,
yesod-paginator Yesod.Paginator.Prelude,
distribution-opensuse OpenSuse.Prelude,
hledger-web Hledger.Web.Import,
termonad Termonad.Prelude 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
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.