34 #ifndef OPENMS_COMPARISON_CLUSTERING_CLUSTERINGGRID_H 35 #define OPENMS_COMPARISON_CLUSTERING_CLUSTERINGGRID_H 77 ClusteringGrid(
const std::vector<double> &grid_spacing_x,
const std::vector<double> &grid_spacing_y);
82 std::vector<double> getGridSpacingX()
const;
87 std::vector<double> getGridSpacingY()
const;
95 void addCluster(
const CellIndex &cell_index,
const int &cluster_index);
104 void removeCluster(
const CellIndex &cell_index,
const int &cluster_index);
109 void removeAllClusters();
117 std::list<int> getClusters(
const CellIndex &cell_index)
const;
125 CellIndex getIndex(
const Point &position)
const;
136 bool isNonEmptyCell(
const CellIndex &cell_index)
const;
143 int getCellCount()
const;
161 std::map<CellIndex, std::list<int> >
cells_;
std::pair< int, int > CellIndex
Definition: ClusteringGrid.h:63
std::pair< double, double > range_x_
[min, max] of the grid in x and y direction
Definition: ClusteringGrid.h:155
DPosition< 2 > Point
Definition: ClusteringGrid.h:68
std::map< CellIndex, std::list< int > > cells_
grid cell index mapped to a list of clusters in it
Definition: ClusteringGrid.h:161
std::pair< double, double > range_y_
Definition: ClusteringGrid.h:156
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const std::vector< double > grid_spacing_y_
Definition: ClusteringGrid.h:150
data structure to store 2D data to be clustered e.g. (m/z, retention time) coordinates from multiplex...
Definition: ClusteringGrid.h:57
const std::vector< double > grid_spacing_x_
spacing of the grid in x and y direction
Definition: ClusteringGrid.h:149