Skip to content

Commit f25a874

Browse files
committed
DOC: interpolate: declare *UnivariateSpline legacy
1 parent 187d6b6 commit f25a874

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scipy/interpolate/_fitpack2.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ class UnivariateSpline:
7272
"""
7373
1-D smoothing spline fit to a given set of data points.
7474
75+
.. legacy:: class
76+
77+
Specifically, we recommend using `make_splrep` instead.
78+
7579
Fits a spline y = spl(x) of degree `k` to the provided `x`, `y` data. `s`
7680
specifies the number of knots by specifying a smoothing condition.
7781
@@ -644,6 +648,10 @@ class InterpolatedUnivariateSpline(UnivariateSpline):
644648
"""
645649
1-D interpolating spline for a given set of data points.
646650
651+
.. legacy:: class
652+
653+
Specifically, we recommend using `make_interp_spline` instead.
654+
647655
Fits a spline y = spl(x) of degree `k` to the provided `x`, `y` data.
648656
Spline function passes through all provided points. Equivalent to
649657
`UnivariateSpline` with `s` = 0.
@@ -761,6 +769,11 @@ class LSQUnivariateSpline(UnivariateSpline):
761769
"""
762770
1-D spline with explicit internal knots.
763771
772+
.. legacy:: class
773+
774+
Specifically, we recommend using `make_lsq_spline` instead.
775+
776+
764777
Fits a spline y = spl(x) of degree `k` to the provided `x`, `y` data. `t`
765778
specifies the internal knots of the spline
766779

0 commit comments

Comments
 (0)