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

Function psi

LDPS_Graph/layers/utils.py:133–135  ·  view source on GitHub ↗
(psi1, psi2, i, inp)

Source from the content-addressed store, hash-verified

131def get_filter(base, k):
132
133 def psi(psi1, psi2, i, inp):
134 mask = (inp<=0.5) * 1.0
135 return psi1[i](inp) * mask + psi2[i](inp) * (1-mask)
136
137 if base not in ['legendre', 'chebyshev']:
138 raise Exception('Base not supported')

Callers 1

get_filterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected