Least-squares fit by a function linear in the parameters

版本 1.0.0 (3.1 KB) 作者: Lucas Pavlov
Performs a least-squares fit by a function which in linear in the parameters to be adjusted (for example any polynomial).
36.0 次下载
更新时间 2019/10/16

查看许可证

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.

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polynomials 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0