CGAL 6.1.2 - Classification

Loading...
Searching...
No Matches
List of all members | Public Member Functions | Protected Attributes
CGAL::Classification::Feature::Eigenvalue Class Reference
Reference Manual » Predefined Features

`#include <CGAL/Classification/Feature/Eigenvalue.h>`

## Inherits from

CGAL::Classification::Feature_base.

## Definition

Feature based on the eigenvalues of the covariance matrix of a local neighborhood.

Its default name is "eigenvalue_0", "eigenvalue_1" or "eigenvalue_2", depending on which eigenvalue is chosen in the constructor.

## Public Member Functions
template<typename InputRange >
| Eigenvalue (const InputRange &input, const Classification::Local_eigen_analysis &eigen, unsigned int idx)
| Constructs the feature.
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`.

## Protected Attributes
const Classification::Local_eigen_analysis & | eigen
unsigned int | m_idx

## Constructor & Destructor Documentation

## ◆ Eigenvalue()

template<typename InputRange >

CGAL::Classification::Feature::Eigenvalue::Eigenvalue | ( | const InputRange & | input,
|  | const Classification::Local_eigen_analysis & | eigen,
|  | unsigned int | idx
| ) |  |

Constructs the feature.

Template Parameters

  Input | model of `ConstRange`. Its iterator type is `RandomAccessIterator`.

Parameters

  input | input range.
  eigen | class with precomputed eigenvectors and eigenvalues.
  idx | index of the eigen value (0, 1 or 2).