MCPcopy
hub / github.com/hyperopt/hyperopt / test_offgrid_float

Method test_offgrid_float

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

Source from the content-addressed store, hash-verified

221 assert qn.pmf(2) > 0.0
222
223 def test_offgrid_float(self):
224 qn = qnormal_gen(0, 1, 0.2)
225 assert qn.pmf(0) > 0.0
226 assert qn.pmf(0.1) == 0.0
227 assert qn.pmf(0.2) > 0.0
228 assert qn.pmf(0.4) > 0.0
229 assert qn.pmf(-0.2) > 0.0
230 assert qn.pmf(-0.4) > 0.0
231 assert qn.pmf(0.99) == 0.0
232 assert qn.pmf(-0.99) == 0.0
233
234 def test_numeric(self):
235 qn = qnormal_gen(0, 1, 1)

Callers

nothing calls this directly

Calls 2

qnormal_genClass · 0.90
pmfMethod · 0.45

Tested by

no test coverage detected