iCub-main
Public Member Functions | List of all members
iCub::ctrl::DBSCAN Class Reference

#include <clustering.h>

+ Inheritance diagram for iCub::ctrl::DBSCAN:

Public Member Functions

std::map< size_t, std::set< size_t > > cluster (const std::vector< yarp::sig::Vector > &data, const yarp::os::Property &options) override
 Cluster the provided data. More...
 
virtual ~DBSCAN ()
 Virtual destructor. More...
 
- Public Member Functions inherited from iCub::ctrl::Clustering
virtual ~Clustering ()
 Virtual destructor. More...
 

Detailed Description

Data clustering based on DBSCAN algorithm.

Note
This implementation is based on the code available at https://github.com/gyaikhom/dbscan.

Definition at line 70 of file clustering.h.

Constructor & Destructor Documentation

◆ ~DBSCAN()

virtual iCub::ctrl::DBSCAN::~DBSCAN ( )
inlinevirtual

Virtual destructor.

Definition at line 89 of file clustering.h.

Member Function Documentation

◆ cluster()

map< size_t, set< size_t > > DBSCAN::cluster ( const std::vector< yarp::sig::Vector > &  data,
const yarp::os::Property &  options 
)
overridevirtual

Cluster the provided data.

Parameters
datacontains points to be clustered.
optionscontains clustering options. The available options are: "epsilon" representing the proximity sensitivity; "minpts" representing the minimum number of neighbours.
Returns
clusters as a mapping between classes and the sets of elements indexes wrt the original data.

Implements iCub::ctrl::Clustering.

Definition at line 152 of file clustering.cpp.


The documentation for this class was generated from the following files: