Text this: Clusterwise PLS regression on a stochastic process