Definition at line 146 of file samplers.py.
◆ __init__()
def python.samplers.LogSampler.__init__ |
( |
|
self, |
|
|
|
low, |
|
|
|
high |
|
) |
| |
◆ __call__()
def python.samplers.Sampler.__call__ |
( |
|
self | ) |
|
|
inherited |
This is the call method that will actually be used (so that normal
functions can also be passed in as samplers).
Definition at line 17 of file samplers.py.
18 """This is the call method that will actually be used (so that normal
19 functions can also be passed in as samplers)."""
◆ shoot()
def python.samplers.LogSampler.shoot |
( |
|
self | ) |
|
Reimplemented from python.samplers.Sampler.
Definition at line 153 of file samplers.py.
154 rand = random.random()
155 logval = rand * math.log(self.high) + (1 - rand) * math.log(self.low)
156 val = math.exp(logval)
◆ high
python.samplers.LogSampler.high |
◆ low
python.samplers.LogSampler.low |
The documentation for this class was generated from the following file: