Documentation API of the 'jhplot.stat.PCA' Java class
PCA
jhplot.stat

Class PCA



  • public class PCAextends Object
    Perform a principle component analysis
    • Constructor Detail

      • PCA

        public PCA(double[][] xy)
        Initialize 2D PCA analysis
        Parameters:
        xy - array in X
      • PCA

        public PCA(P1D p1d)
        Perform PCA analysis using P1D object (in 2D). All weights for points are set to 1. X and Y component of P1D are used for the PCA.
        Parameters:
        p1d - P1D input objects
    • Method Detail

      • eval

        public void eval()
      • center_reduce

        public double[][] center_reduce(double[][] x)
      • inv_center_reduce

        public double[] inv_center_reduce(double[] y)
      • inv_center_reduce

        public double[][] inv_center_reduce(double[][] y)
      • getSummary

        public String getSummary()
        Return projection vectors and information per projection vector.
        Returns:
        text
      • getEigenvalue

        public double getEigenvalue(int k)
        Information about eigenvalues
        Parameters:
        k - - integer value (axis index of the projection)
        Returns:
      • getEigenvalueTot

        public double getEigenvalueTot(int k)
        Express eigenvalues as percentage of total
        Parameters:
        k - integer value (axis index of the projection)
        Returns:
      • getCoordinate

        public double getCoordinate(int k,                            int i)
        Positions of the last coordinates of the projection vectors (eigenvectors)
        Parameters:
        k - - integer value (axis index)
        i - - index (position)
        Returns:
      • getCovariance

        public double[][] getCovariance()
        Get covariance matrix
        Returns:
      • getD

        public double[] getD()
        Get transpose
        Returns:
      • getMean

        public double getMean(int k)
        Get means for the component k
        Parameters:
        k - index of the axis
        Returns:
      • getStd

        public double getStd(int k)
        Get standard deviations
        Parameters:
        k - index of the axis
        Returns:
      • main

        public static void main(String[] args)
      • doc

        public void doc()
        Show online documentation.

DMelt 1.2 © DataMelt by jWork.ORG

Warning: You see this message because an access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of dataMelt, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.