The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
GeometricVariable.this
mir
random
variable
GeometricVariable
struct
GeometricVariable
(T)
this
(
T
p
,
bool
success
)
if
(
isFloatingPoint
!
T
)
Parameters
p
T
probability
success
bool
p is success probability if
true
and failure probability otherwise.
Meta
Source
See Implementation
mir
random
variable
GeometricVariable
constructors
this
functions
opCall
manifest constants
isRandomVariable
variables
max
min