I was wondering if UnivariateSpline lets you do constrain spline fitting? For example, consider the following data:
x y
13 2.404070
12 1.588134
11 1.760112
10 1.771360
09 1.860087
08 1.955789
07 1.910408
06 1.655911
05 1.778952
04 2.624719
03 1.698099
02 3.022607
01 3.303135
The discussion on the choice and role of smoothing function can be found in an earlier post here. However, if we impose a constrain that spline needs to be monotonically decreasing, any ideas on how should we go about fitting the spline?
Thanks for your help!.
EDIT: The spline need not exactly fit all the points. It should however satisfy the constrain (monotonically decreasing).