07-30-2018 02:16 PM
Hello, good afternoon guys Does anyone know how to calculate the percentage of the signal by comparing as this graph the signal Blue by Red, giving result in percentage of similar?
I already tried to divide it and the result multiplied by 100 but it does not work.
07-30-2018 02:27 PM
07-30-2018 02:32 PM
In the graphic I have the signal in blue and the signal in red. Blue will always vary, red will be the default.
When the blue varies I must calculate the percentage that the blue signal looks like red.
07-30-2018 02:41 PM
Hi rdelectric,
When the blue varies I must calculate the percentage that the blue signal looks like red.
So again: please define "similarity"...
Do you want to compare amplitude? Phase? Frequencies? A mixture of some or all those parameters?
07-30-2018 02:46 PM
Exact, I want to compare, the mix of all the parameters.
What I have achieved so far has been to compare only values as amplitude.
07-30-2018 03:15 PM
Hi rdelectric,
you still aren't able to provide a definition of your desired value...
What about using a FFT to determine main frequency with its amplitude, and maybe the "noise" of all the other frequencies in the spectrum?
After all this discussion you still NEED to define a formula for your "similarity"!
07-30-2018 03:27 PM
Thanks for the help but my knowledge is still small. I'll search what you told me. Thank you
07-30-2018 04:41 PM
I did this this way, but it does not work correctly, I'm researching on FFT
07-31-2018 07:48 AM
@rdeletric wrote:
I did this this way, but it does not work correctly
How can you say it does not work when you have yet to define what it should be? As has already been said, you need to define EXACTLY what you are looking for. You seem to already have a number you are looking for. Do you know how that number was previously calculated?
07-31-2018 08:03 AM
Hi, they are signals received by the line-In input of the microphone. be an oscilloscope by the sound card.