MCPcopy
hub / github.com/hyperopt/hyperopt / pmf

Method pmf

hyperopt/rdists.py:192–193  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

190 return np.isclose(x, safe_int_cast(np.round(old_div(x, self.q))) * self.q)
191
192 def pmf(self, x):
193 return np.exp(self.logpmf(x))
194
195 def logpmf(self, x):
196 x1 = np.atleast_1d(x)

Callers 8

check_d_samplesFunction · 0.45
test_offgrid_intMethod · 0.45
test_offgrid_floatMethod · 0.45
test_offgrid_intMethod · 0.45
test_offgrid_floatMethod · 0.45
test_numericMethod · 0.45
test_offgrid_intMethod · 0.45
test_offgrid_floatMethod · 0.45

Calls 1

logpmfMethod · 0.95

Tested by 8

check_d_samplesFunction · 0.36
test_offgrid_intMethod · 0.36
test_offgrid_floatMethod · 0.36
test_offgrid_intMethod · 0.36
test_offgrid_floatMethod · 0.36
test_numericMethod · 0.36
test_offgrid_intMethod · 0.36
test_offgrid_floatMethod · 0.36