public class PrinComp
public PrinComp(DoubleMatrix data, net.maizegenetics.stats.PCA.PrinComp.PC_TYPE type)
The class uses singular value decomposition to find the eigenvalues, eigenvectors and principal components of either the covariance or correlation matrix of the data. If covariance, then the result is the equivalent of finding the eighvalue decomposition of XX'/(n-1) where X is the data matrix with the column means subtracted from the columns. If correlation, the column values are also scaled. That is, after the mean is subtracted, the values are divided by the standard deviation.
data - a matrix of datatype - should the analysis use the covariance (cov) or the correlation (corr) matrix of the datapublic kotlin.Array[] getEigenValues()
public DoubleMatrix getEigenValuesAsColumnVector()
public DoubleMatrix getEigenvalueMatrix()
public DoubleMatrix getEigenVectors()
public DoubleMatrix getPrincipalComponents()
calculated as data * eigenvectors