Cardiac output is a function of heart rate and stroke volume.