15 #ifndef OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
16 #define OPENMS_COMPARISON_CLUSTERING_GRIDBASEDCLUSTER_H
39 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:24
std::vector< int > point_indices_
set of indices referencing the points in the cluster
Definition: GridBasedCluster.h:93
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:104
Point centre_
centre of the cluster
Definition: GridBasedCluster.h:82
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:88
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:103
bool operator<(const GridBasedCluster &other) const
operators for comparisons
DBoundingBox< 2 > Rectangle
Definition: GridBasedCluster.h:34
bool operator==(const GridBasedCluster &other) const
DPosition< 2 > Point
Definition: GridBasedCluster.h:29
GridBasedCluster(const Point ¢re, const Rectangle &bounding_box, const std::vector< int > &point_indices)
initialises all data structures
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19