Please see checkout the tutorials below.
Calculating distortion metrics
Tutorial for Analyzing Datasets using Distortion Metrics