41 #ifndef OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
42 #define OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
65 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:50
std::vector< int > point_indices_
set of indices referencing the points in the cluster
Definition: GridBasedCluster.h:119
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:130
Point centre_
centre of the cluster
Definition: GridBasedCluster.h:108
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:114
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:129
bool operator<(const GridBasedCluster &other) const
operators for comparisons
DBoundingBox< 2 > Rectangle
Definition: GridBasedCluster.h:60
bool operator==(const GridBasedCluster &other) const
DPosition< 2 > Point
Definition: GridBasedCluster.h:55
GridBasedCluster(const Point ¢re, const Rectangle &bounding_box, const std::vector< int > &point_indices)
initialises all data structures
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48