Development of a Statistical Shape-Function Model of the Implanted Knee for Real-Time Prediction of Joint Mechanics