breeze.linalg

PCA

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

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

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

  8. def clone(): AnyRef

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

  10. lazy val cumuvar: DenseVector[Double]

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

  11. 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)

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  18. 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)

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

    Definition Classes
    AnyRef
  20. lazy val nobs: Int

    The number of observations.

  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

    The proportion of variance explained by each principal component.

  24. lazy val scores: DenseMatrix[Double]

    Translate the original data points to the PC axes.

  25. lazy val sdev: DenseVector[Double]

    The standard deviations of the principal components.

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped