Estimation or adaptation of machine parameters