minor API improvements to PCA/LDA