MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / rbf_polynomial

Function rbf_polynomial

tests/testutils.py:248–252  ·  view source on GitHub ↗
(r, n, l)

Source from the content-addressed store, hash-verified

246 betas = sqrtm(np.linalg.inv(S))
247
248 def rbf_polynomial(r, n, l):
249 poly = 0
250 for k in range(1, n_max + 1):
251 poly += betas[n, k - 1] * (r_cut - np.clip(r, 0, r_cut)) ** (k + 2)
252 return poly
253
254 return soap_integration(system, centers, args, rbf_polynomial)
255

Callers

nothing calls this directly

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected