#include <itkKdTreeBasedKmeansEstimator.h>
Definition at line 179 of file itkKdTreeBasedKmeansEstimator.h.
Collaboration diagram for itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector:Classes | |
| struct | Candidate |
Public Member Functions | |
| CandidateVector ()=default | |
| void | GetCentroids (InternalParametersType ¢roids) |
| Candidate & | operator[] (int index) |
| void | SetCentroids (InternalParametersType ¢roids) |
| int | Size () const |
| void | UpdateCentroids () |
| virtual | ~CandidateVector ()=default |
Private Attributes | |
| std::vector< Candidate > | m_Candidates |
| MeasurementVectorSizeType | m_MeasurementVectorSize { 0 } |
|
default |
|
virtualdefault |
|
inline |
gets the centroids (k-means)
Definition at line 220 of file itkKdTreeBasedKmeansEstimator.h.
References m_Candidates, and Size().
|
inline |
gets the index-th candidates
Definition at line 249 of file itkKdTreeBasedKmeansEstimator.h.
References m_Candidates.
|
inline |
Initialize the centroids with the argument. At each iteration, this should be called before filtering.
Definition at line 203 of file itkKdTreeBasedKmeansEstimator.h.
References itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::Centroid, itk::NumericTraits< T >::GetLength(), m_Candidates, m_MeasurementVectorSize, itk::NumericTraits< T >::SetLength(), itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::Size, and itk::Statistics::KdTreeBasedKmeansEstimator< TKdTree >::CandidateVector::Candidate::WeightedCentroid.
|
inlinenodiscard |
returns the number of candidate = k
Definition at line 195 of file itkKdTreeBasedKmeansEstimator.h.
References m_Candidates.
Referenced by GetCentroids(), and 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 232 of file itkKdTreeBasedKmeansEstimator.h.
References m_Candidates, m_MeasurementVectorSize, and Size().
|
private |
internal storage for the candidates
Definition at line 256 of file itkKdTreeBasedKmeansEstimator.h.
Referenced by GetCentroids(), operator[](), SetCentroids(), Size(), and UpdateCentroids().
|
private |
Length of each measurement vector
Definition at line 259 of file itkKdTreeBasedKmeansEstimator.h.
Referenced by SetCentroids(), and UpdateCentroids().