\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.13.2 - Classification
CGAL::Classification::Feature_base Class Referenceabstract

#include <CGAL/Classification/Feature_base.h>

Inherited by CGAL::Classification::Feature::Cluster_mean_of_feature, CGAL::Classification::Feature::Cluster_size, CGAL::Classification::Feature::Cluster_variance_of_feature, CGAL::Classification::Feature::Cluster_vertical_extent, CGAL::Classification::Feature::Color_channel< GeomTraits, PointRange, ColorMap >, CGAL::Classification::Feature::Distance_to_plane< PointRange, PointMap >, CGAL::Classification::Feature::Echo_scatter< GeomTraits, PointRange, PointMap, EchoMap >, CGAL::Classification::Feature::Eigenvalue, CGAL::Classification::Feature::Elevation< GeomTraits, PointRange, PointMap >, CGAL::Classification::Feature::Simple_feature< InputRange, PropertyMap >, CGAL::Classification::Feature::Vertical_dispersion< GeomTraits, PointRange, PointMap >, and CGAL::Classification::Feature::Verticality< GeomTraits >.

Definition

Abstract class describing a classification feature that associates a scalar value to each item of the classification input.

Examples:
Classification/example_feature.cpp.

Public Member Functions

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...
 

Member Function Documentation

◆ value()

virtual float CGAL::Classification::Feature_base::value ( std::size_t  index)
pure virtual

Returns the value taken by the feature for at the item for the item at position index.

This method must be implemented by inherited classes.

Examples:
Classification/example_feature.cpp.