bioprocessing 6.0.4
PcaElement< T > Class Template Reference

#include <bioprocessing/classification/cah.h>

Inheritance diagram for PcaElement< T >:
Collaboration diagram for PcaElement< T >:

Public Member Functions

 PcaElement (const std::vector< std::list< Point3d > > &classes, const AimsData< T > &data, int numberOfSignificantVps, const std::set< int > &constitutedFrom=std::set< int >(), int number=-1)
 
virtual ~PcaElement ()
 
virtual float distanceTo (Element< T > *other, const std::vector< std::list< Point3d > > &classes, const AimsData< T > &data, const AimsData< float > &initDistances)
 
virtual Element< T > * agregateTo (Element< T > *other, const std::vector< std::list< Point3d > > &classes, const AimsData< T > &data, const AimsData< float > &initDistances, int newNb=-1)
 
float unreconstructedInertia ()
 
float meanReconstructionError ()
 
float varReconstructionError ()
 
const AimsData< float > & errorMatrix ()
 
- Public Member Functions inherited from Element< T >
 Element (int number, int card, const std::set< int > &constitutedFrom=std::set< int >())
 
virtual ~Element ()
 
int number () const
 
void setNumber (int number)
 
int card () const
 
void setCard (int card)
 
const std::set< int > & constitutedFrom () const
 

Protected Member Functions

void computeReconstructionError (const std::vector< std::list< Point3d > > &classes, const AimsData< T > &data)
 
float error (const Point3d &p, const AimsData< T > &data)
 

Protected Attributes

float _meanReconstructionError
 
float _varReconstructionError
 
AimsData< float > _errorMatrix
 
std::vector< float > _mean
 
float _unreconstructedInertia
 
int _numberOfSignificantVps
 
- Protected Attributes inherited from Element< T >
int _number
 
int _card
 
std::set< int > _constitutedFrom
 

Detailed Description

template<typename T>
class PcaElement< T >

Definition at line 89 of file cah.h.

Constructor & Destructor Documentation

◆ PcaElement()

template<typename T>
PcaElement< T >::PcaElement ( const std::vector< std::list< Point3d > > & classes,
const AimsData< T > & data,
int numberOfSignificantVps,
const std::set< int > & constitutedFrom = std::set<int>(),
int number = -1 )

◆ ~PcaElement()

template<typename T>
virtual PcaElement< T >::~PcaElement ( )
inlinevirtual

Definition at line 95 of file cah.h.

Member Function Documentation

◆ agregateTo()

template<typename T>
Element< T > * PcaElement< T >::agregateTo ( Element< T > * other,
const std::vector< std::list< Point3d > > & classes,
const AimsData< T > & data,
const AimsData< float > & initDistances,
int newNb = -1 )
virtual

Implements Element< T >.

Definition at line 253 of file cah_d.h.

References _numberOfSignificantVps, Element< T >::constitutedFrom(), Element< T >::Element(), and PcaElement().

Referenced by distanceTo().

◆ computeReconstructionError()

template<typename T>
void PcaElement< T >::computeReconstructionError ( const std::vector< std::list< Point3d > > & classes,
const AimsData< T > & data )
protected

◆ distanceTo()

template<typename T>
float PcaElement< T >::distanceTo ( Element< T > * other,
const std::vector< std::list< Point3d > > & classes,
const AimsData< T > & data,
const AimsData< float > & initDistances )
virtual

◆ error()

template<typename T>
float PcaElement< T >::error ( const Point3d & p,
const AimsData< T > & data )
protected

◆ errorMatrix()

template<typename T>
const AimsData< float > & PcaElement< T >::errorMatrix ( )
inline

Definition at line 109 of file cah.h.

References _errorMatrix.

Referenced by computeReconstructionError().

◆ meanReconstructionError()

template<typename T>
float PcaElement< T >::meanReconstructionError ( )

Definition at line 156 of file cah_d.h.

References _meanReconstructionError.

Referenced by distanceTo().

◆ unreconstructedInertia()

template<typename T>
float PcaElement< T >::unreconstructedInertia ( )

Definition at line 170 of file cah_d.h.

References _unreconstructedInertia.

◆ varReconstructionError()

template<typename T>
float PcaElement< T >::varReconstructionError ( )

Definition at line 163 of file cah_d.h.

References _varReconstructionError.

Member Data Documentation

◆ _errorMatrix

template<typename T>
AimsData<float> PcaElement< T >::_errorMatrix
protected

Definition at line 118 of file cah.h.

Referenced by computeReconstructionError(), and errorMatrix().

◆ _mean

template<typename T>
std::vector<float> PcaElement< T >::_mean
protected

Definition at line 119 of file cah.h.

Referenced by computeReconstructionError().

◆ _meanReconstructionError

template<typename T>
float PcaElement< T >::_meanReconstructionError
protected

Definition at line 115 of file cah.h.

Referenced by computeReconstructionError(), meanReconstructionError(), and PcaElement().

◆ _numberOfSignificantVps

template<typename T>
int PcaElement< T >::_numberOfSignificantVps
protected

Definition at line 122 of file cah.h.

Referenced by agregateTo(), computeReconstructionError(), and PcaElement().

◆ _unreconstructedInertia

template<typename T>
float PcaElement< T >::_unreconstructedInertia
protected

Definition at line 121 of file cah.h.

Referenced by computeReconstructionError(), PcaElement(), and unreconstructedInertia().

◆ _varReconstructionError

template<typename T>
float PcaElement< T >::_varReconstructionError
protected

Definition at line 116 of file cah.h.

Referenced by computeReconstructionError(), PcaElement(), and varReconstructionError().


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