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
Vladimir Sovkov 2020 年 12 月 14 日
編集済み: Vladimir Sovkov 2020 年 12 月 14 日
Find the function "fnzeros" in the Matlab documentation.
Gustavo Lunardon Quillo
Gustavo Lunardon Quillo 2020 年 12 月 14 日
Great! Thank you for your input.
Now, if I need to find the positions at which the splines have a nonzero value a any suggestion on how to proceed?
I tried: x = fnzeros(spline-a)
but it does not make operations with structs. Do I need to modify my spline or there is a way inside the fnzeros function?
Steven Lord
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
Gustavo Lunardon Quillo 2020 年 12 月 15 日
Could you please demonstrate how to do that applied to a spline created using the
Thank you very much.
Unai San Miguel
Unai San Miguel 2021 年 1 月 21 日
Maybe this: |fnzeros(fncmb(spline, '-', a)|?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSpline Postprocessing についてさらに検索

質問済み:

2020 年 12 月 14 日

コメント済み:

2021 年 1 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by