Fitting the exogenous model to measured data