MCPcopy Create free account
hub / github.com/Anoise/WTFlib / phi_

Function phi_

LDPS_Graph/layers/utils.py:18–20  ·  view source on GitHub ↗
(phi_c, x, lb = 0, ub = 1)

Source from the content-addressed store, hash-verified

16 return out
17
18def phi_(phi_c, x, lb = 0, ub = 1):
19 mask = np.logical_or(x<lb, x>ub) * 1.0
20 return np.polynomial.polynomial.Polynomial(phi_c)(x) * (1-mask)
21
22def get_phi_psi(k, base):
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected