I’m currently using GNU octave to fit a simple cosine with a phase to many data sets stored in text files. For most data sets, the fit works well, but for some others, it doesn’t. I’m wondering whether I’d be able to get better results with Julia. I’ll explain:
The fit function I’m using, as I guess almost any other curve fit function, requires an initial guess for the parameters, as in LsqFit.jl. In GNU octave, in order to guess the frequency good enough, I rely upon
findpeaks to calculate the average distance between the maximum peaks. Here’s an example of 2 measurements which
findpeaks hasn’t found successfully the peaks in one of them, but it did so good enough for the other:
There are a bit more details into the way I used
findpeaks, but that’s irrelevant because this is a Julia Forum and not an octave forum.
Anyway, I’m no Julia user yet but I’ve heard good things about it, so I’m seeking out to hear about the experience of other users from the community, doing similar tasks to this. To be specific,
findpeaks is my main disappointment out of GNU octave, and I wonder if somewhere in Julia’s community there’s a better