|
NAG C++ classes for Hyperspectral Imaging
0.1
|
A type used to hold the details of a k-means clustering analysis. More...
#include <SpecImage.hpp>
Public Member Functions | |
| kmeans_results (kmeans_results &&a) | |
| Move constructor. More... | |
| kmeans_results ()=default | |
| Default constructor. More... | |
| kmeans_results & | operator= (kmeans_results &&a) |
| Move assignment operator. More... | |
Data Fields | |
| int | k |
| The number of clusters in the analysis. More... | |
| size_t | m |
| The number of rows of the matrix. More... | |
| size_t | n |
| The number of columns of the matrix. More... | |
| kmeans_metric_t | metric |
| The distance metric used in the analysis. More... | |
| std::unique_ptr< FPType[], cfree > | cmeans |
| The k by n matrix whose rows define the k cluster centroids, stored in row-major ordering. More... | |
| std::vector< int > | inc |
| A vector of length m in which inc[i] indicates the cluster to which the \(i\)th pixel belongs. More... | |
| std::vector< int > | nic |
| A vector of length k in which nic[i] gives the number of pixels in the \(i\)th cluster. More... | |
| std::vector< FPType > | wcs |
| A vector of length k in which wcs[i] gives the within-cluster sum of distances to the \(i\)th cluster centroid. More... | |
A type used to hold the details of a k-means clustering analysis.
For more information see: nag::SpecImage::kmeans.
|
inline |
Move constructor.
|
default |
Default constructor.
|
inline |
Move assignment operator.
| std::unique_ptr<FPType[], cfree> nag::kmeans_results< FPType >::cmeans |
The k by n matrix whose rows define the k cluster centroids, stored in row-major ordering.
| std::vector<int> nag::kmeans_results< FPType >::inc |
A vector of length m in which inc[i] indicates the cluster to which the \(i\)th pixel belongs.
| int nag::kmeans_results< FPType >::k |
The number of clusters in the analysis.
| size_t nag::kmeans_results< FPType >::m |
The number of rows of the matrix.
| kmeans_metric_t nag::kmeans_results< FPType >::metric |
The distance metric used in the analysis.
| size_t nag::kmeans_results< FPType >::n |
The number of columns of the matrix.
| std::vector<int> nag::kmeans_results< FPType >::nic |
A vector of length k in which nic[i] gives the number of pixels in the \(i\)th cluster.
| std::vector<FPType> nag::kmeans_results< FPType >::wcs |
A vector of length k in which wcs[i] gives the within-cluster sum of distances to the \(i\)th cluster centroid.
1.8.9.1