PCP Evaluation Metric for Pose Estimation

Hi
I am trying to implement PCP,Percentage of correct poses. evaluation metric for pose estimation between prediction and ground truth for an image from LSP dataset
Is there any tutorial or a reference code i can find related to it to have a better idea on how to implement it?