Class

io.github.mandar2812.dynaml.utils

PCAScaler

Related Doc: package utils

Permalink

case class PCAScaler(center: DenseVector[Double], covmat: DenseMatrix[Double]) extends ReversibleScaler[DenseVector[Double]] with Product with Serializable

Transforms data by projecting on the principal components (eigen-vectors) of the sample covariance matrix.

center

The empirical mean of the data features

covmat

The empirical covariance matrix of the data features

Linear Supertypes
Product, Equals, ReversibleScaler[DenseVector[Double]], Encoder[DenseVector[Double], DenseVector[Double]], Scaler[DenseVector[Double]], DataPipe[DenseVector[Double], DenseVector[Double]], Serializable, Serializable, DataPipeConvertible[DenseVector[Double], DenseVector[Double]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PCAScaler
  2. Product
  3. Equals
  4. ReversibleScaler
  5. Encoder
  6. Scaler
  7. DataPipe
  8. Serializable
  9. Serializable
  10. DataPipeConvertible
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PCAScaler(center: DenseVector[Double], covmat: DenseMatrix[Double])

    Permalink

    center

    The empirical mean of the data features

    covmat

    The empirical covariance matrix of the data features

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def %>(that: Basis[DenseVector[Double]]): Basis[DenseVector[Double]]

    Permalink
    Definition Classes
    DataPipe
  4. def *[T](that: ReversibleScaler[T]): ReversibleScaler[(DenseVector[Double], T)]

    Permalink
    Definition Classes
    ReversibleScaler
  5. def *[T](that: Scaler[T]): Scaler[(DenseVector[Double], T)]

    Permalink
    Definition Classes
    Scaler
  6. def *[OtherSource, OtherDestination](that: DataPipe[OtherSource, OtherDestination]): ParallelPipe[DenseVector[Double], DenseVector[Double], OtherSource, OtherDestination]

    Permalink
    Definition Classes
    DataPipe
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def >(otherRevScaler: ReversibleScaler[DenseVector[Double]]): ReversibleScaler[DenseVector[Double]]

    Permalink
    Definition Classes
    ReversibleScaler
  9. def >[Further](that: Encoder[DenseVector[Double], Further]): Encoder[DenseVector[Double], Further]

    Permalink
    Definition Classes
    Encoder
  10. def >(otherScaler: Scaler[DenseVector[Double]]): Scaler[DenseVector[Double]]

    Permalink
    Definition Classes
    Scaler
  11. def >[Further](that: DataPipeConvertible[DenseVector[Double], Further]): DataPipe[DenseVector[Double], Further]

    Permalink
    Definition Classes
    DataPipe
  12. def >-<[OtherSource, OtherDestination](that: DataPipe[OtherSource, OtherDestination]): DataPipe2[DenseVector[Double], OtherSource, (DenseVector[Double], OtherDestination)]

    Permalink
    Definition Classes
    DataPipe
  13. def apply[T <: Traversable[DenseVector[Double]]](data: T): T

    Permalink
    Definition Classes
    ReversibleScaler → Scaler → DataPipe
  14. def apply(data: DenseVector[Double]): DenseVector[Double]

    Permalink
    Definition Classes
    DataPipe
  15. final def asInstanceOf[T0]: T0

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

    Permalink

    The empirical mean of the data features

  17. def clone(): AnyRef

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

    Permalink

    The empirical covariance matrix of the data features

  19. lazy val eigenvalues: DenseVector[Double]

    Permalink
  20. lazy val eigenvectors: DenseMatrix[Double]

    Permalink
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. val i: Scaler[DenseVector[Double]]

    Permalink
    Definition Classes
    PCAScaler → ReversibleScaler → Encoder
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. def run(data: DenseVector[Double]): DenseVector[Double]

    Permalink
    Definition Classes
    PCAScaler → DataPipe
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toPipe: (DenseVector[Double]) ⇒ DenseVector[Double]

    Permalink
    Definition Classes
    DataPipe → DataPipeConvertible
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from ReversibleScaler[DenseVector[Double]]

Inherited from Encoder[DenseVector[Double], DenseVector[Double]]

Inherited from Scaler[DenseVector[Double]]

Inherited from DataPipe[DenseVector[Double], DenseVector[Double]]

Inherited from Serializable

Inherited from Serializable

Inherited from DataPipeConvertible[DenseVector[Double], DenseVector[Double]]

Inherited from AnyRef

Inherited from Any

Ungrouped