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

4 次查看(过去 30 天)
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

采纳的回答

Matt J
Matt J 2013-6-30
This FEX file let's you constrain a spline fit to be convex
  4 个评论
Image Analyst
Image Analyst 2013-6-30
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 2013-6-30
Yes, it would be a regression, but I assume that's what the OP wants, as the title of the post mentions "convex smoothing".

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Splines 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by