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:

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