Calculate phase and amplitude of a sampled sine wave

4.8k Views Asked by At

I have an electronics project where I sample two sine waves. I would like to know what the amplitude (peak) and difference in phase is. Actually I just need to know the average product of the two waves.

A caveat I have is that the two sine waves have been rectified. (negatives cut off) Here is what I expect the samples to look like:

Samples of two rectified sine waves out of phase

I don't have much experience with signal processing. Can you recommend any reading or topics to research?