47 #ifndef OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
48 #define OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
71 GridBasedCluster(
const Point ¢re,
const Rectangle &bounding_box,
const std::vector<int> &point_indices,
const int &property_A,
const std::vector<int> &properties_B);
basic data structure for clustering
Definition: GridBasedCluster.h:56
std::vector< int > point_indices_
set of indices referencing the points in the cluster
Definition: GridBasedCluster.h:125
const Point & getCentre() const
returns cluster centre
GridBasedCluster(const Point ¢re, const Rectangle &bounding_box, const std::vector< int > &point_indices, const int &property_A, const std::vector< int > &properties_B)
initialises all data structures
std::vector< int > properties_B_
Definition: GridBasedCluster.h:136
Point centre_
centre of the cluster
Definition: GridBasedCluster.h:114
const std::vector< int > & getPoints() const
returns indices of points in cluster
const std::vector< int > & getPropertiesB() const
returns properties B of all points
Rectangle bounding_box_
bounding box of the cluster i.e. (min,max) in x and y direction
Definition: GridBasedCluster.h:120
const Rectangle & getBoundingBox() const
returns bounding box
bool operator>(const GridBasedCluster &other) const
int getPropertyA() const
returns property A
int property_A_
properties A and B Each point in a cluster can (optionally) possess two properties A and B....
Definition: GridBasedCluster.h:135
bool operator<(const GridBasedCluster &other) const
operators for comparisons
DBoundingBox< 2 > Rectangle
Definition: GridBasedCluster.h:66
bool operator==(const GridBasedCluster &other) const
DPosition< 2 > Point
Definition: GridBasedCluster.h:61
GridBasedCluster(const Point ¢re, const Rectangle &bounding_box, const std::vector< int > &point_indices)
initialises all data structures
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47