Arguments: coeffs: As returned by `natural_cubic_spline_coeffs`.
(self, coeffs, **kwargs)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected