Sine Decoder Description
The application calculates the amplitude A and period T of the sine that passes through 3 given points x[0] ,x[1], x[2]
x[i]= A * sin( 2*PI*i/T + Fi )
Calculation Fi is trivial
Limitations :
1) Algorithm does no calculate sine if it's impossible
For example { 2 1 1 } and so on
2) T>2
There are many harmonics which pass through points {1 -1 1 }
3) x[1] <> 0
There are many sines which pass through points {1 0 -1 }
It is impossible to find sine which pass through points { x 0 y } where x <> -y
x[i]= A * sin( 2*PI*i/T + Fi )
Calculation Fi is trivial
Limitations :
1) Algorithm does no calculate sine if it's impossible
For example { 2 1 1 } and so on
2) T>2
There are many harmonics which pass through points {1 -1 1 }
3) x[1] <> 0
There are many sines which pass through points {1 0 -1 }
It is impossible to find sine which pass through points { x 0 y } where x <> -y
Open up