Estimation of the structural mean of a sample of curves by dynamic time warping