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

Method test_offgrid_int

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

Source from the content-addressed store, hash-verified

215 check_d_samples(qn, n=10000)
216
217 def test_offgrid_int(self):
218 qn = qnormal_gen(0, 1, 2)
219 assert qn.pmf(0) > 0.0
220 assert qn.pmf(1) == 0.0
221 assert qn.pmf(2) > 0.0
222
223 def test_offgrid_float(self):
224 qn = qnormal_gen(0, 1, 0.2)

Callers

nothing calls this directly

Calls 2

qnormal_genClass · 0.90
pmfMethod · 0.45

Tested by

no test coverage detected