76 ClusteringGrid(
const std::vector<double> &grid_spacing_x,
const std::vector<double> &grid_spacing_y);
160 std::map<CellIndex, std::list<int> >
cells_;
data structure to store 2D data to be clustered e.g. (m/z, retention time) coordinates from multiplex...
Definition: ClusteringGrid.h:57
std::vector< double > getGridSpacingX() const
returns grid spacing in x direction
const std::vector< double > grid_spacing_y_
Definition: ClusteringGrid.h:149
CellIndex getIndex(const Point &position) const
returns grid cell index (i,j) for the positions (x,y)
void removeCluster(const CellIndex &cell_index, const int &cluster_index)
removes a cluster from this grid cell and removes the cell if no other cluster left
int getCellCount() const
returns number of grid cells occupied by one or more clusters
std::list< int > getClusters(const CellIndex &cell_index) const
returns clusters in this grid cell
const std::vector< double > grid_spacing_x_
spacing of the grid in x and y direction
Definition: ClusteringGrid.h:148
std::pair< int, int > CellIndex
Definition: ClusteringGrid.h:62
std::vector< double > getGridSpacingY() const
returns grid spacing in y direction
std::map< CellIndex, std::list< int > > cells_
grid cell index mapped to a list of clusters in it
Definition: ClusteringGrid.h:160
void removeAllClusters()
removes all clusters from this grid (and hence all cells)
ClusteringGrid(const std::vector< double > &grid_spacing_x, const std::vector< double > &grid_spacing_y)
constructor taking two vectors
bool isNonEmptyCell(const CellIndex &cell_index) const
checks if there are clusters at this cell index
void addCluster(const CellIndex &cell_index, const int &cluster_index)
adds a cluster to this grid cell
std::pair< double, double > range_x_
[min, max] of the grid in x and y direction
Definition: ClusteringGrid.h:154
std::pair< double, double > range_y_
Definition: ClusteringGrid.h:155
DPosition< 2 > Point
Definition: ClusteringGrid.h:67
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:563