bioprocessing  5.1.2
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 Element< T >::constitutedFrom().

◆ computeReconstructionError()

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

Definition at line 177 of file cah_d.h.

Referenced by PcaElement< T >::PcaElement().

◆ 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

Implements Element< T >.

Definition at line 236 of file cah_d.h.

References Element< T >::card(), and PcaElement< T >::meanReconstructionError().

◆ 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 PcaElement< T >::_errorMatrix.

◆ meanReconstructionError()

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

Definition at line 156 of file cah_d.h.

Referenced by PcaElement< T >::distanceTo().

◆ unreconstructedInertia()

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

Definition at line 170 of file cah_d.h.

◆ varReconstructionError()

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

Definition at line 163 of file cah_d.h.

Member Data Documentation

◆ _errorMatrix

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

Definition at line 118 of file cah.h.

Referenced by PcaElement< T >::errorMatrix().

◆ _mean

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

Definition at line 119 of file cah.h.

◆ _meanReconstructionError

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

Definition at line 115 of file cah.h.

◆ _numberOfSignificantVps

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

Definition at line 122 of file cah.h.

◆ _unreconstructedInertia

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

Definition at line 121 of file cah.h.

◆ _varReconstructionError

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

Definition at line 116 of file cah.h.


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