MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / fn

Function fn

k_diffusion/sampling.py:250–256  ·  view source on GitHub ↗
(tau)

Source from the content-addressed store, hash-verified

248 if order - 1 > i:
249 raise ValueError(f'Order {order} too high for step {i}')
250 def fn(tau):
251 prod = 1.
252 for k in range(order):
253 if j == k:
254 continue
255 prod *= (tau - t[i - k]) / (t[i - j] - t[i - k])
256 return prod
257 return integrate.quad(fn, t[i], t[i + 1], epsrel=1e-4)[0]
258
259

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected