Compute least squares estimates of one bounded or two ordered