|
Point Cloud Library (PCL)
1.15.1-dev
|
K-means clustering. More...
#include <pcl/ml/kmeans.h>
Public Types | |
| using | PointId = unsigned int |
| using | ClusterId = unsigned int |
| using | SetPoints = std::set< PointId > |
| using | Point = std::vector< float > |
| using | ClustersToPoints = std::vector< SetPoints > |
| using | PointsToClusters = std::vector< ClusterId > |
| using | Centroids = std::vector< Point > |
Public Member Functions | |
| Kmeans (unsigned int num_points, unsigned int num_dimensions) | |
| Empty constructor. More... | |
| void | setClusterSize (unsigned int k) |
| This method sets the k-means cluster size. More... | |
| void | kMeans () |
| void | setInputData (std::vector< Point > &data) |
| void | addDataPoint (Point &data_point) |
| void | initialClusterPoints () |
| void | computeCentroids () |
| float | distance (const Point &x, const Point &y) |
| Centroids | get_centroids () |
Protected Attributes | |
| unsigned int | num_points_ |
| unsigned int | num_dimensions_ |
| unsigned int | num_clusters_ |
| The number of clusters. More... | |
| std::vector< Point > | data_ |
| The cluster centroids. More... | |
| ClustersToPoints | clusters_to_points_ |
| PointsToClusters | points_to_clusters_ |
| Centroids | centroids_ |
| using pcl::Kmeans::Centroids = std::vector<Point> |
| using pcl::Kmeans::ClusterId = unsigned int |
| using pcl::Kmeans::ClustersToPoints = std::vector<SetPoints> |
| using pcl::Kmeans::Point = std::vector<float> |
| using pcl::Kmeans::PointId = unsigned int |
| using pcl::Kmeans::PointsToClusters = std::vector<ClusterId> |
| using pcl::Kmeans::SetPoints = std::set<PointId> |
| pcl::Kmeans::Kmeans | ( | unsigned int | num_points, |
| unsigned int | num_dimensions | ||
| ) |
Empty constructor.
Definition at line 52 of file kmeans.hpp.
|
inline |
Definition at line 113 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
| void pcl::Kmeans::computeCentroids | ( | ) |
|
inline |
Definition at line 144 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
| void pcl::Kmeans::initialClusterPoints | ( | ) |
| void pcl::Kmeans::kMeans | ( | ) |
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
|
inline |
This method sets the k-means cluster size.
| [in] | k | number of clusters |
Definition at line 81 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |