Statistics for FITTING SEGMENTED LINEAR-REGRESSION MODELS