Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Types | Public Member Functions
kqp::AccumulatorKernelEVD< Scalar, true > Class Template Reference
Inheritance diagram for kqp::AccumulatorKernelEVD< Scalar, true >:
kqp::KernelEVD< Scalar > kqp::KernelEVDBase

Public Types

enum  { use_linear_combination = 1 }
 

Public Member Functions

 KQP_SCALAR_TYPEDEFS (Scalar)
 
 AccumulatorKernelEVD (const FSpaceCPtr &fs)
 
virtual void _add (Real alpha, const FMatrixCPtr &mX, const ScalarAltMatrix &mA) override
 Rank-n update.
 
void reset () override
 Resets the state of the builder.
 
virtual Decomposition< Scalar > _getDecomposition () const override
 Actually performs the computation.
 
- Public Member Functions inherited from kqp::KernelEVD< Scalar >
 KQP_SCALAR_TYPEDEFS (Scalar)
 
 KernelEVD (const FSpaceCPtr &featureSpace)
 
virtual void add (Real alpha, const FMatrixCPtr &mX, const ScalarAltMatrix &mA)
 Rank-n update.
 
void add (const FMatrixCPtr &mU)
 Rank-n update.
 
Decomposition< Scalar > getDecomposition () const
 
Index getUpdateCount () const
 Return the number of updates.
 
const FSpaceCPtr & getFSpace () const
 

Member Function Documentation

template<typename Scalar >
virtual void kqp::AccumulatorKernelEVD< Scalar, true >::_add ( Real  alpha,
const FMatrixCPtr &  mU,
const ScalarAltMatrix &  mA 
)
inlineoverridevirtual

Rank-n update.

Updates the current decomposition to \(A^\prime \approx A + \alpha X A A^T X^\top\)

Parameters
alphaThe coefficient for the update
mXThe feature matrix X with n feature vectors.
mAThe mixture matrix (of dimensions n x k).

Implements kqp::KernelEVD< Scalar >.


The documentation for this class was generated from the following file: