GOF function

Goodness of Fit Distance