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

#include <kernel_sum.hpp>

Inheritance diagram for kqp::KernelSumMatrix< Scalar >:
kqp::FeatureMatrixBase< Scalar >

Public Types

typedef KernelSumMatrix< Scalar > Self
 

Public Member Functions

 KQP_SCALAR_TYPEDEFS (Scalar)
 
 KernelSumMatrix (const KernelSumSpace< Scalar > &space)
 
 KernelSumMatrix (const Self &other)
 
 KernelSumMatrix (const std::vector< FMatrixPtr > &matrices)
 
 KernelSumMatrix (Self &&other)
 
Selfoperator= (Self &&other)
 
const FMatrixCPtr operator[] (size_t i) const
 
virtual Index size () const override
 
virtual void add (const FMatrixBase &f, const std::vector< bool > *which=NULL) override
 
virtual FMatrixBasePtr subset (const std::vector< bool >::const_iterator &begin, const std::vector< bool >::const_iterator &end) const override
 Reduces the feature matrix to a subset of its vectors.
 
virtual FMatrixBase & operator= (const FeatureMatrixBase< Scalar > &other) override
 
virtual FMatrixBasePtr copy () const override
 
- Public Member Functions inherited from kqp::FeatureMatrixBase< Scalar >
 KQP_SCALAR_TYPEDEFS (Scalar)
 
FMatrixPtr subset (const std::vector< bool > &list) const
 Reduces the feature matrix to a subset of its vectors.
 
template<typename T >
const T & as () const
 
template<typename T >
T & as ()
 
void add (const FMatrixCPtr &f, const std::vector< bool > *which=NULL)
 

Detailed Description

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

Linear combination kernel

Coefficients are squared (always positive) and normalized so they sum to 1

Member Function Documentation

template<typename Scalar >
virtual void kqp::KernelSumMatrix< Scalar >::add ( const FMatrixBase &  f,
const std::vector< bool > *  which = NULL 
)
inlineoverridevirtual

Add pre-images vectors

Implements kqp::FeatureMatrixBase< Scalar >.

template<typename Scalar >
virtual FMatrixBasePtr kqp::KernelSumMatrix< Scalar >::copy ( ) const
inlineoverridevirtual
template<typename Scalar >
virtual FMatrixBase& kqp::KernelSumMatrix< Scalar >::operator= ( const FeatureMatrixBase< Scalar > &  other)
inlineoverridevirtual

Assignement

Implements kqp::FeatureMatrixBase< Scalar >.

template<typename Scalar >
virtual Index kqp::KernelSumMatrix< Scalar >::size ( ) const
inlineoverridevirtual

Number of pre-image vectors

Implements kqp::FeatureMatrixBase< Scalar >.

template<typename Scalar >
virtual FMatrixBasePtr kqp::KernelSumMatrix< Scalar >::subset ( const std::vector< bool >::const_iterator &  begin,
const std::vector< bool >::const_iterator &  end 
) const
inlineoverridevirtual

Reduces the feature matrix to a subset of its vectors.

The list of indices is supposed to be ordered.

Parameters
beginBeginning of the list of indices
endEnd of the list of indices

Implements kqp::FeatureMatrixBase< Scalar >.


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