scalation.analytics

PrincipalComponents

class PrincipalComponents extends Reducer with Error

The PrincipalComponents class performs the Principal Component Analysis (PCA) on data matrix 'x'. It can be used to reduce the dimensionality of the data. First find the PCs by calling 'findPCs' and then call 'reduce' to reduce the data (i.e., reduce matrix 'x' to a lower dimensionality matrix).

Linear Supertypes
Error, Reducer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PrincipalComponents
  2. Error
  3. Reducer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
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[java.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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

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

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

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

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

    Definition Classes
    AnyRef
  22. 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.

    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.

    Definition Classes
    PrincipalComponentsReducer
  23. def reduce(): MatrixD

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

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

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Error

Inherited from Reducer

Inherited from AnyRef

Inherited from Any

Ungrouped