Presents a technique for reducing thermally induced machining error by measuring the structural deformation of the machine tool while it is in operation, and compensating for it on-line.