CGAL 5.1 - Classification
|
#include <CGAL/Classification/Feature/Cluster_mean_of_feature.h>
CGAL::Classification::Feature_base.
Feature that computes the mean values of an itemwise feature over the respective items of clusters.
Its default name is "mean_" + the name of the itemwise feature.
Public Member Functions | |
template<typename ClusterRange > | |
Cluster_mean_of_feature (ClusterRange &clusters, Feature_handle itemwise_feature) | |
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... | |
CGAL::Classification::Feature::Cluster_mean_of_feature::Cluster_mean_of_feature | ( | ClusterRange & | clusters, |
Feature_handle | itemwise_feature | ||
) |
Constructs the feature.
ClusterRange | model of ConstRange . Its iterator type is RandomAccessIterator and its value type is the key type of Cluster . |
clusters | input range. |
itemwise_feature | feature that takes values on the range of items from which clusters is a subset. |