필터 지우기
필터 지우기

Function for Smoothing spline approximation

조회 수: 5 (최근 30일)
uli man
uli man 2015년 5월 15일
편집: Mark Stone 2015년 5월 16일
Hello, I have a 3-dimensional function f(x1,x2,x3)=x1^2+x2^2+x3^2. (x1,x2,x3) is a vector with components x1, x2 and x3. Therefore my input is a matrix including these vectors. I need to approximate this function and search for a matlab-function like smoothingspline=smoothingFunction(matrx with input values,function f,smoothingparam_lambda) ; As output of this function I expect set of values from the approximated function for each input vector. Does something like this exist in matlab?
Maybe the info that such kind of function already exists in R and is called tps() does help.
I would be very happy if you can help me to find this smoothing function in Matlab. Thank you in advance Kind Regards

채택된 답변

Mark Stone
Mark Stone 2015년 5월 16일
This was originally a comment, but no one has answered, so here is a partial answer.
It would seem your challenge is the need for trivariate smoothing spline. The Curve Fitting toolbox has functions for bivariate smoothing splines, but not as far as I can tell for trivariate or general multivariate smoothing spline. Trivariate (and higher) tensor product splines can be accommodated however, at least for data on a rectangular grid (as opposed to irregularly spaced data). You'll need to determine whether that meets your needs.
  댓글 수: 1
Mark Stone
Mark Stone 2015년 5월 16일
편집: Mark Stone 2015년 5월 16일
I presume that the function f(x1,x2,x3)=x1^2+x2^2+x3^2 is just for illustrative purposes, and that your actual data will not be the result of evaluation from such a simple, and smoooooth function, otherwise what's the point of developing a (smoothing) spline approximation, unless it is just for the heck of it or an assignment.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by