The idea is to try and identify a way to set a proper threshold for peak detection from the ECG data itself or the R peaks if necessary. What exactly i'm looking for is an average T peak amplitude that I can relate to the data itself in the objective of setting a threshold to ignore the T peaks.