Forecasting using twinned principal curves