The relationship between the electrocardiogram and the electrical activity of the heart.