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

Method __init__

utils/strand_util.py:256–269  ·  view source on GitHub ↗

Arguments: coeffs: As returned by `natural_cubic_spline_coeffs`.

(self, coeffs, **kwargs)

Source from the content-addressed store, hash-verified

254 """
255
256 def __init__(self, coeffs, **kwargs):
257 """
258 Arguments:
259 coeffs: As returned by `natural_cubic_spline_coeffs`.
260 """
261 super(NaturalCubicSpline, self).__init__(**kwargs)
262
263 t, a, b, c, d = coeffs
264
265 self._t = t
266 self._a = a
267 self._b = b
268 self._c = c
269 self._d = d
270
271 def evaluate(self, t):
272 maxlen = self._b.size(-2) - 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected