Validation scores
Provides fucntions for computing scores validating the quality of the clustering.
- Authors
Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini
-
namespace clue
Functions
-
template<std::size_t Ndim>
auto silhouette(const clue::PointsHost<Ndim> &points, std::size_t point)
Compute the silhouette score for a specific point in the dataset.
Note
This function currently only works for points with non-periodic coordinates.
- Template Parameters:
- std::size_t Ndim
The number of dimensions of the points
- Parameters:
- const clue::PointsHost<Ndim> &points
The dataset containing the points
- std::size_t point
The index of the point for which to compute the silhouette score
- Returns:
The silhouette score of the specified point
-
template<std::size_t Ndim>
auto silhouette(const clue::PointsHost<Ndim> &points)
Compute the average silhouette score for the entire dataset.
Note
This function currently only works for points with non-periodic coordinates.
- Template Parameters:
- std::size_t Ndim
The number of dimensions of the points
- Parameters:
- const clue::PointsHost<Ndim> &points
The dataset containing the points
- Returns:
The average silhouette score of the dataset