Simplified.
Working pWaveOccurenceRatio