Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Member Functions | Static Public Member Functions | Friends
kqp::Event< Scalar > Class Template Reference

#include <probabilities.hpp>

Inheritance diagram for kqp::Event< Scalar >:
kqp::KernelOperator< Scalar >

Public Member Functions

 KQP_SCALAR_TYPEDEFS (Scalar)
 
 Event (const KernelEVD< Scalar > &evd, bool fuzzy=false)
 
 Event (const FSpaceCPtr &fs, const FMatrixCPtr &mX, bool orthonormal)
 
 Event (const FSpaceCPtr &fs, const FMatrixCPtr &mX, const ScalarAltMatrix &mY, bool orthonormal)
 
 Event (const Decomposition< Scalar > &d, bool fuzzy)
 
void setUseLinearCombination (bool b)
 (debug) Manually sets the linear combination
 
Density< Scalar > project (const Density< Scalar > &density, bool orthogonal=false, bool normalize=true)
 Project onto a subspace.
 
- Public Member Functions inherited from kqp::KernelOperator< Scalar >
 KQP_SCALAR_TYPEDEFS (Scalar)
 
 KernelOperator (const KernelEVD< Scalar > &evd)
 
 KernelOperator (const Decomposition< Scalar > &d)
 
 KernelOperator (const FSpaceCPtr &fs, const FMatrixCPtr &mX, const ScalarAltMatrix &mY, const RealVector &mS, bool orthonormal)
 Creates a new kernel operator.
 
void trim (Index newRank)
 
Index getRank () const
 
const FSpaceBase & fs () const
 Get the feature space.
 
const FMatrixBase & X () const
 Get the feature matrix.
 
const ScalarAltMatrix & Y () const
 
const RealAltVector & S () const
 
void orthonormalize () const
 
bool isOrthonormal () const
 
Real squaredNorm ()
 
ScalarMatrix inners (const KernelOperator< Scalar > &that) const
 Compute the inner products of the scaled basis of the operators.
 
FMatrixPtr matrix () const
 Get the matrix corresponding to the decomposition.
 

Static Public Member Functions

static Density< Scalar > projectWithLC (const Density< Scalar > &density, const Event< Scalar > &event)
 
static Density< Scalar > projectOrthogonalWithLC (const Density< Scalar > &density, const Event< Scalar > &event)
 
static Density< Scalar > project (const Density< Scalar > &density, const Event< Scalar > &event)
 
static Density< Scalar > projectOrthogonal (const Density< Scalar > &density, const Event< Scalar > &event)
 

Friends

class Density< Scalar >
 

Additional Inherited Members

- Protected Member Functions inherited from kqp::KernelOperator< Scalar >
void _orthonormalize ()
 Orthonormalize the decomposition (non const version)
 
- Protected Attributes inherited from kqp::KernelOperator< Scalar >
Decomposition< Scalar > m_operator
 The current decomposition.
 

Detailed Description

template<typename Scalar>
class kqp::Event< Scalar >

A document subspace is defined by the basis vectors (matrix #mU} ). A diagonal matrix ( #mS}) defines the weights associated to the basis vectors

Author
B. Piwowarski benja.nosp@m.min@.nosp@m.bpiwo.nosp@m.war..nosp@m.net

Constructor & Destructor Documentation

template<typename Scalar>
kqp::Event< Scalar >::Event ( const KernelEVD< Scalar > &  evd,
bool  fuzzy = false 
)
inline

Construct a Event from a kernel EVD. See KernelEigenDecomposition::KernelEigenDecomposition(KernelEVD, bool)}

Parameters
evdThe kernel EVD decomposition
template<typename Scalar>
kqp::Event< Scalar >::Event ( const FSpaceCPtr &  fs,
const FMatrixCPtr &  mX,
bool  orthonormal 
)
inline

Construct an event from a basis

template<typename Scalar>
kqp::Event< Scalar >::Event ( const FSpaceCPtr &  fs,
const FMatrixCPtr &  mX,
const ScalarAltMatrix &  mY,
bool  orthonormal 
)
inline

Construct an event from a basis


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