You could use the FFT to obtain a good initial guess of the sinusoidal frequency. See one such LsqFit example here.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Custom nonlinear curve fitting package? | 1 | 443 | September 2, 2023 | |
[ANN] Package for sinusoidal regressions | 0 | 311 | March 7, 2023 | |
Hello all. I've been trying to use `LsqFit` to fit a hyperbolic tangent function t | 2 | 1243 | February 20, 2021 | |
Parameter estimation in mathematical models of common functions (sine, cos, exp and other special functions) | 14 | 271 | July 1, 2025 | |
Alternatives to LsqFit for nonlinear curve fitting? | 12 | 2875 | December 21, 2023 |