Public Member Functions | Public Attributes | List of all members
t_cluster Class Reference

Cluster type class, clusters are groups of points in close proximity. More...

#include <types_declaration.h>

Public Member Functions

bool BreakPointDetector (t_pointPtr &pt, t_pointPtr &pt_m1)
 Break point detection used as clustering criterion. More...
 
void CalculateCentroid (void)
 Calculate the centroid of the cluster. More...
 
t_clusteroperator= (const t_cluster &rhs)
 
 t_cluster ()
 

Public Attributes

vector< int > associations
 Association vector, multiple associations maybe possible. More...
 
t_point centroid
 Centroid of the cluster. More...
 
double id
 Id of the cluster. More...
 
vector< t_pointPtrpoints
 Vector of the support points of the cluster. More...
 

Detailed Description

Cluster type class, clusters are groups of points in close proximity.

Definition at line 243 of file types_declaration.h.

Constructor & Destructor Documentation

t_cluster::t_cluster ( )

Definition at line 244 of file types_implementation.cpp.

Member Function Documentation

bool t_cluster::BreakPointDetector ( t_pointPtr pt,
t_pointPtr pt_m1 
)

Break point detection used as clustering criterion.

Parameters
ptfirst point
pt_m1next point
Returns
true if the next point belongs to a new cluster
Todo:
change the clustering criterion to something more mathematically accurate

Definition at line 270 of file types_implementation.cpp.

void t_cluster::CalculateCentroid ( void  )

Calculate the centroid of the cluster.

Definition at line 284 of file types_implementation.cpp.

t_cluster & t_cluster::operator= ( const t_cluster rhs)

Definition at line 252 of file types_implementation.cpp.

Member Data Documentation

vector<int> t_cluster::associations

Association vector, multiple associations maybe possible.

Definition at line 253 of file types_declaration.h.

t_point t_cluster::centroid

Centroid of the cluster.

Definition at line 249 of file types_declaration.h.

double t_cluster::id

Id of the cluster.

Definition at line 251 of file types_declaration.h.

vector<t_pointPtr> t_cluster::points

Vector of the support points of the cluster.

Definition at line 247 of file types_declaration.h.


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


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18