Nevermind, I found this post that explains how to do it. Basically, I don’t have to normalize the vector of weights. I simply take the inverse squared of each measurement error.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Nonlinear curve fitting with weights with LsqFit | 10 | 2287 | March 26, 2022 | |
How to fit a function to measurements with error? | 12 | 4701 | September 8, 2024 | |
How to do weighted least squares fit with LsqFit.jl | 2 | 1839 | May 14, 2021 | |
Python lmfit takes weights into account, but Julia LsqFit package seems not to | 9 | 1448 | November 23, 2022 | |
Question about LsqFit | 1 | 1195 | December 18, 2018 |