CGAL 5.4 - Classification
CGAL::Classification::Feature::Cluster_size Class Reference

#include <CGAL/Classification/Feature/Cluster_size.h>

Inherits from

CGAL::Classification::Feature_base.

Definition

Feature that returns the size of each cluster.

Its default name is "cluster_size".

Public Member Functions

template<typename ClusterRange >
 Cluster_size (ClusterRange &clusters)
 constructs the feature. More...
 
- Public Member Functions inherited from CGAL::Classification::Feature_base
const std::string & name () const
 returns the name of the feature (initialized to abstract_feature for Feature_base).
 
void set_name (const std::string &name)
 changes the name of the feature.
 
virtual float value (std::size_t index)=0
 returns the value taken by the feature for at the item for the item at position index. More...
 

Constructor & Destructor Documentation

◆ Cluster_size()

template<typename ClusterRange >
CGAL::Classification::Feature::Cluster_size::Cluster_size ( ClusterRange &  clusters)

constructs the feature.

Template Parameters
ClusterRangemodel of ConstRange. Its iterator type is RandomAccessIterator and its value type is the key type of Cluster.
Parameters
clustersinput range.