Root-finding algorithm (e.g. fzero) on Additive Generalized Splines model
이전 댓글 표시
Dear community,
In principle a model that is based on splines has localized functions to describe the relationship between inputs and outputs. I understand it is easy to compute the output given the input but what if I need to reverse the question and given the output I need to find the input? Obs. my function is monotonic for the interval I am considering.
- Is it possible to implement a root-finding algorithm when I have a black-box model like splines to work with? Could you show an example? I have only applied this to parametric models before.
Thanks for your help!
댓글 수: 5
Vladimir Sovkov
2020년 12월 14일
편집: Vladimir Sovkov
2020년 12월 14일
Find the function "fnzeros" in the Matlab documentation.
Gustavo Lunardon Quillo
2020년 12월 14일
Steven Lord
2020년 12월 14일
Can you show us the format in which the spline you created is stored? Different approaches may work if it's a struct array, a vector of breaks with an array of coefficients, a fit object from Curve Fitting Toolbox, etc.
Gustavo Lunardon Quillo
2020년 12월 15일
Unai San Miguel
2021년 1월 21일
Maybe this: |fnzeros(fncmb(spline, '-', a)|?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!