Digital model for electrocardiogram