Calculate correlation distance between PC magnitudes given a number of target dimensions
Useful links