The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
PiecewiseConstantVariable.opCall
mir
random
variable
PiecewiseConstantVariable
Complexity:
O(log n)
where
n
is the number of
weights
.
T
opCall
(RNG gen)
T
opCall
(RNG* gen)
struct
PiecewiseConstantVariable
(T, W = T)
T
opCall
(
RNG
)
(
scope
RNG
*
gen
)
if
(
isSaturatedRandomEngine
!
RNG
)
if
(
isNumeric
!
T
&&
isNumeric
!
W
)
Meta
Source
See Implementation
mir
random
variable
PiecewiseConstantVariable
constructors
this
functions
max
min
opCall
manifest constants
isRandomVariable
Complexity: O(log n) where n is the number of weights.