The main use for this algorithm is the calculation of Heart Rate and Respiration Rate, though it can also be used to determine the frequency of microphone data, generated voltage signals like saw-tooth waves or even data from a flickering light sourc...