- #1
Simoyd
- 3
- 0
So my question is, how does this work (hopefully I'm allowed to do hyperlinks):
https://www.desmos.com/calculator/zlvrts7mul
Given a table of x and y coordinates, how do I find the sin wave of best fit. I need to get f (frequency), a (amplitude), and p (phase) for the function in this form f(x) = a ⋅ sin( x ⋅ f + p )
My end goal is to have a software function that can do this. I'm really having difficulty figuring out where to start :(. I'd like to also be able to do this for cos(), but I'm not sure if I can figure out cos based on how sin works.
I'd like to understand how it's done, but at the same time I'm a bit scared that this might be way over my head. Any help would be appreciated.
https://www.desmos.com/calculator/zlvrts7mul
Given a table of x and y coordinates, how do I find the sin wave of best fit. I need to get f (frequency), a (amplitude), and p (phase) for the function in this form f(x) = a ⋅ sin( x ⋅ f + p )
My end goal is to have a software function that can do this. I'm really having difficulty figuring out where to start :(. I'd like to also be able to do this for cos(), but I'm not sure if I can figure out cos based on how sin works.
I'd like to understand how it's done, but at the same time I'm a bit scared that this might be way over my head. Any help would be appreciated.