MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / fn

Function fn

sat/sgm/modules/diffusionmodules/sampling_utils.py:124–130  ·  view source on GitHub ↗
(tau)

Source from the content-addressed store, hash-verified

122 raise ValueError(f"Order {order} too high for step {i}")
123
124 def fn(tau):
125 prod = 1.0
126 for k in range(order):
127 if j == k:
128 continue
129 prod *= (tau - t[i - k]) / (t[i - j] - t[i - k])
130 return prod
131
132 return integrate.quad(fn, t[i], t[i + 1], epsrel=epsrel)[0]
133

Callers 3

innerFunction · 0.85
encodeMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected