Best cosine fit java
I have a bunch of point, between 5 and 6 data point for each measure.

My application needs to fit this point with a cosine function, I already know that this points follows, more or less a cosine.

The fitting alghoritim could be the Least Mean Square Error.

Could you please give me some examples of class that taken some points returns amplitude, phase, and omega of the best fit?? f(t) = a*cos(omega t+ phi).

Thanks a lot
Best cosine fit java
===

I have a bunch of point, between 5 and 6 data point for each measure.

My application needs to fit this point with a cosine function, I already know that this points follows, more or less a cosine.

The fitting alghoritim could be the Least Mean Square Error.

Could you please give me some examples of class that taken some points returns amplitude, phase, and omega of the best fit?? f(t) = a*cos(omega t+ phi).

Thanks a lot