scalation.analytics

PrincipalComponents

class PrincipalComponents extends AnyRef

This class computes the Principal Components (PCs) for data matrix x. It can be used to reduce the dimensionality of the data. First find the the PCs by calling findPCs and then call reduceData to reduce the data.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PrincipalComponents
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrincipalComponents(x: MatrixD)

    x

    the data matrix to reduce, stored column-wise

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. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def computeCov(): MatrixD

    Assuming mean centered data, compute the covariance matrix.

  9. def computeEigenVectors(eVal: VectorD): MatrixD

    Compute the unit eigenvectors for the covariance matrix.

    Compute the unit eigenvectors for the covariance matrix.

    eVal

    the vector of eigenvalues for the covariance matrrix

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

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def findPCs(k: Int): MatrixD

    Find the Principal Components/Features, the eigenvectors with the k highest eigenvalues.

    Find the Principal Components/Features, the eigenvectors with the k highest eigenvalues.

    k

    the number of Principal Components (PCs) to find

  14. final def getClass(): java.lang.Class[_]

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

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

    Definition Classes
    Any
  17. def meanCenter(): VectorD

    Center the data about the means (i.

    Center the data about the means (i.e., subtract the means) and return the mean vector (i.e., the mean for each varaibale/dimension).

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

    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Definition Classes
    AnyRef
  21. def recover(): MatrixD

    Approximately recover the orginal data by multiplying the reduced matrix by the inverse (via transpose) of the feature matrix and then adding back the means.

  22. def reduceData(): MatrixD

    Multiply the zero mean data matrix by the feature matrix to reduce dimensionality.

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any