In reply to Jørgen Boysen.

Use the unscaled covariance matrix as the argument to the function.