Least-squares fit by a function linear in the parameters

Performs a least-squares fit by a function which in linear in the parameters to be adjusted (for example any polynomial).
36 download
Aggiornato 16 ott 2019

Visualizza la licenza

Following the approach on page 266 from the book "Probability and statistics in particle physics" by A.G. Frodesen, O. Skgeggestad and H. Tofte, the parameters from the least squares fit by a function linear in the parameters (for example a straight line or any polynomial, a sine function if only the amplitude and/or offset are fitted and not the frequency nor the phase) are obtained, together with the covariance matrix of those parameters, the chi squared and the p-value. Four examples (straight line, parabola, fit by polynomials from the Legendre basis and ampltude and offset of a sine function) are provided in a different script.

Cita come

Lucas Pavlov (2024). Least-squares fit by a function linear in the parameters (https://www.mathworks.com/matlabcentral/fileexchange/73044-least-squares-fit-by-a-function-linear-in-the-parameters), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2017a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Polynomials in Help Center e MATLAB Answers
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0