How can I do a convex smoothing to a set of points in Matlab?

4 views (last 30 days)
Hi
I'm using the function spline to do a cubic spline interpolation, nevertheless given the nature of that functions some parts are not convex. I need to ensure the convexity of the smoothed function, is there a way to do something similar like the spline but keeping it convex?
Many Thanks

Accepted Answer

Matt J
Matt J on 30 Jun 2013
This FEX file let's you constrain a spline fit to be convex
  4 Comments
Image Analyst
Image Analyst on 30 Jun 2013
Well then it wouldn't go through the knots. It would be a regression rather than an interpolation. Or do some kinds of splines not need to go through the knots?
Matt J
Matt J on 30 Jun 2013
Yes, it would be a regression, but I assume that's what the OP wants, as the title of the post mentions "convex smoothing".

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!