Abstract: A device for classifying of supraventricular tachyarrhythmia (SVT) from ventricular tachyarrhythmia (VT) comprising means for providing a template signal and a test signal originated from an electrogram, the template signal and the test signal comprising samples, means for transforming at least the test signal resulting in a representation of the test signal where the sample values of the signal take integers, means for determining a correlation between the template signal and the test signal and means for classifying of SVT from ventricular VT based on the correlation.