Bayesian Polynomial Curve Fitting
This code implements the Bayesian curve fitting example in Section 1.2.6 of [1], where a D-degree polynomial is sequentially fitted to N data points generated from a sine function. The output is a plot of the predictive distribution and the mean estimate of the fitted polynomial. Various parameters, i.e. alpha, beta, in the code can be modified to see their effect to the fit.
You have the option to output as GIF as well.
Reference:
[1] Bishop, Pattern Recognition and Machine Learning, 2006.
Zitieren als
Karl Ezra Pilario (2024). Bayesian Polynomial Curve Fitting (https://www.mathworks.com/matlabcentral/fileexchange/68675-bayesian-polynomial-curve-fitting), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |