PolynomialRange#

class superglm.PolynomialRange(
lo: float | str,
hi: float | str,
degree: int,
join: Literal['kink', 'tangent', 'smooth'] = 'tangent',
)#

Bases: object

Pin a spline to a polynomial of degree (0-3) on [lo, hi].

join="tangent" carries the curve’s value and slope across each edge; "kink" carries only its value, so the slope may change there; "smooth" keeps the spline’s own continuity. On an ordered term lo and hi may be band names.