Two derivations of Principal Component Analysis on datasets of distributions