ITK  5.2.0
Insight Toolkit
Classes | Public Member Functions | List of all members
itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector Class Reference

#include <itkKdTreeBasedKmeansEstimator.h>

+ Collaboration diagram for itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector:

Classes

struct  Candidate
 

Public Member Functions

 CandidateVector ()=default
 
int Size () const
 
virtual ~CandidateVector ()=default
 
std::vector< Candidatem_Candidates
 
MeasurementVectorSizeType m_MeasurementVectorSize { 0 }
 
void SetCentroids (InternalParametersType &centroids)
 
void GetCentroids (InternalParametersType &centroids)
 
void UpdateCentroids ()
 
Candidateoperator[] (int index)
 

Detailed Description

template<typename TKdTree>
class itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector

Candidate Vector.

Definition at line 178 of file itkKdTreeBasedKmeansEstimator.h.

Constructor & Destructor Documentation

◆ CandidateVector()

template<typename TKdTree >
itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::CandidateVector ( )
default

◆ ~CandidateVector()

template<typename TKdTree >
virtual itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::~CandidateVector ( )
virtualdefault

Member Function Documentation

◆ GetCentroids()

template<typename TKdTree >
void itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::GetCentroids ( InternalParametersType centroids)
inline

gets the centroids (k-means)

Definition at line 220 of file itkKdTreeBasedKmeansEstimator.h.

◆ operator[]()

template<typename TKdTree >
Candidate& itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::operator[] ( int  index)
inline

gets the index-th candidates

Definition at line 251 of file itkKdTreeBasedKmeansEstimator.h.

◆ SetCentroids()

template<typename TKdTree >
void itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::SetCentroids ( InternalParametersType centroids)
inline

◆ Size()

template<typename TKdTree >
int itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Size ( ) const
inline

returns the number of candidate = k

Definition at line 194 of file itkKdTreeBasedKmeansEstimator.h.

◆ UpdateCentroids()

template<typename TKdTree >
void itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::UpdateCentroids ( )
inline

updates the centroids using the vector sum of measurement vectors that belongs to each centroid and the number of measurement vectors

Definition at line 234 of file itkKdTreeBasedKmeansEstimator.h.

Member Data Documentation

◆ m_Candidates

template<typename TKdTree >
std::vector<Candidate> itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_Candidates
private

internal storage for the candidates

Definition at line 255 of file itkKdTreeBasedKmeansEstimator.h.

◆ m_MeasurementVectorSize

template<typename TKdTree >
MeasurementVectorSizeType itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::m_MeasurementVectorSize { 0 }
private

Length of each measurement vector

Definition at line 258 of file itkKdTreeBasedKmeansEstimator.h.


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