Class

breeze.linalg

PCA

Related Doc: package linalg

Permalink

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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val center: DenseVector[Double]

    Permalink

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

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val covmat: DenseMatrix[Double]

    Permalink
  8. lazy val cumuvar: DenseVector[Double]

    Permalink

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

  9. lazy val eigenvalues: DenseVector[Double]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. lazy val loadings: DenseMatrix[Double]

    Permalink

    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)

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. lazy val nobs: Int

    Permalink

    The number of observations.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. lazy val propvar: DenseVector[Double]

    Permalink

    The proportion of variance explained by each principal component.

  22. lazy val scores: DenseMatrix[Double]

    Permalink

    Translate the original data points to the PC axes.

  23. lazy val sdev: DenseVector[Double]

    Permalink

    The standard deviations of the principal components.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val x: DenseMatrix[Double]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped