Predict workpiece measurements from measurements of previous workpieces