Packages

c

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 Principal Components 'PC's 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
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: 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. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. 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 'PC's to find

  10. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. def recover(): MatrixD

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

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

    Definition Classes
    PrincipalComponentsReducer
  18. 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
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Error

Inherited from Reducer

Inherited from AnyRef

Inherited from Any

Ungrouped