Sensitivity analysis and optimization for a head movement model