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

Select the eigenvalues with a ratio to the highest magnitude above a given threshold. More...

#include <rank_selector.hpp>

Inheritance diagram for kqp::RatioSelector< Scalar >:
kqp::Selector< Scalar >

Public Types

typedef boost::shared_ptr
< Aggregator< Scalar > > 
AggregatorPtr
 

Public Member Functions

 RatioSelector (Scalar threshold, const AggregatorPtr &aggregator)
 
virtual void selection (EigenList< Scalar > &eigenvalues) const override
 
virtual picojson::object save () const override
 

Detailed Description

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

Select the eigenvalues with a ratio to the highest magnitude above a given threshold.

Member Function Documentation

template<typename Scalar>
virtual picojson::object kqp::RatioSelector< Scalar >::save ( ) const
inlineoverridevirtual

Saves the selector to JSON

Implements kqp::Selector< Scalar >.

template<typename Scalar>
virtual void kqp::RatioSelector< Scalar >::selection ( EigenList< Scalar > &  eigenvalues) const
inlineoverridevirtual
Parameters
eigenValuesThe ordered list of eigenvalues

Implements kqp::Selector< Scalar >.


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