standard deviation and variancePose code added.