A method of processing heart monitoring samples is provided that includes computing a folded correlation value for each heart monitoring sample in a plurality of heart monitoring samples and identifying peaks corresponding to heartbeats based on the folded correlation values of the heart monitoring samples.