MCPcopy
hub / github.com/hyperopt/hyperopt / test_offgrid_int

Method test_offgrid_int

hyperopt/tests/unit/test_rdists.py:257–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255 check_d_samples(qn, n=10000)
256
257 def test_offgrid_int(self):
258 mu, sigma, q = (1, 2, 2)
259 qn = qlognormal_gen(mu, sigma, q)
260 assert qn.pmf(0) > qn.pmf(2) > qn.pmf(20) > 0
261 assert qn.pmf(1) == qn.pmf(2 - 0.001) == qn.pmf(-1) == 0
262
263 def test_offgrid_float(self):
264 mu, sigma, q = (-0.5, 2, 0.2)

Callers

nothing calls this directly

Calls 2

qlognormal_genClass · 0.90
pmfMethod · 0.45

Tested by

no test coverage detected