Packages

class PCA extends AnyRef

Perform Principal Components Analysis on input data. Handles scaling of the when computing the covariance matrix. Lazily produces the scores (the translation of the data to their new coordinates on the PC axes.

Input is a matrix that has data points as rows. Variable naming and documentation inspired and used directy from the 'princomp' function in R.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PCA
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PCA(x: DenseMatrix[Double], covmat: DenseMatrix[Double])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val center: DenseVector[Double]

    The means of each column (axis) of the data.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. val covmat: DenseMatrix[Double]
  8. lazy val cumuvar: DenseVector[Double]

    The cumulative proportion of variance explained by the first n principal components.

  9. lazy val eigenvalues: DenseVector[Double]

    Do SVD on the covariance matrix.

    Do SVD on the covariance matrix.

    eigenvalues: The vector of eigenvalues, from ranked from left to right with respect to how much of the variance is explained by the respective component.

    loadings: the matrix of variable loadings (i.e., a matrix whose rows contain the eigenvectors (note: in R, the eigenvectors are the columns)

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val loadings: DenseMatrix[Double]

    Do SVD on the covariance matrix.

    Do SVD on the covariance matrix.

    eigenvalues: The vector of eigenvalues, from ranked from left to right with respect to how much of the variance is explained by the respective component.

    loadings: the matrix of variable loadings (i.e., a matrix whose rows contain the eigenvectors (note: in R, the eigenvectors are the columns)

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. lazy val nobs: Int

    The number of observations.

  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. lazy val propvar: DenseVector[Double]

    The proportion of variance explained by each principal component.

  21. lazy val scores: DenseMatrix[Double]

    Translate the original data points to the PC axes.

  22. lazy val sdev: DenseVector[Double]

    The standard deviations of the principal components.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. val x: DenseMatrix[Double]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped