Described is a method of delivering a pacing pattern to a heart, measuring
a response of the heart to the pacing pattern, the measured response including
a series of electrograms representing a plurality of heartbeats of the pacing pattern
and calculating diagnostic data from the measured response, wherein the diagnostic
data includes data in one of a time domain and a frequency domain.