MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / legendreDer

Function legendreDer

layers/utils.py:33–39  ·  view source on GitHub ↗
(k, x)

Source from the content-addressed store, hash-verified

31
32
33def legendreDer(k, x):
34 def _legendre(k, x):
35 return (2*k+1) * eval_legendre(k, x)
36 out = 0
37 for i in np.arange(k-1,-1,-2):
38 out += _legendre(i, x)
39 return out
40
41
42def phi_(phi_c, x, lb = 0, ub = 1):

Callers 1

get_filterFunction · 0.85

Calls 1

_legendreFunction · 0.85

Tested by

no test coverage detected