ClusteringGrid

class pyopenms.ClusteringGrid

Bases: object

Cython implementation of _ClusteringGrid

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1ClusteringGrid.html

__init__()
  • Cython signature: void ClusteringGrid(libcpp_vector[double] & grid_spacing_x, libcpp_vector[double] & grid_spacing_y)

  • Cython signature: void ClusteringGrid(ClusteringGrid &)

Methods

__init__

  • Cython signature: void ClusteringGrid(libcpp_vector[double] & grid_spacing_x, libcpp_vector[double] & grid_spacing_y)

addCluster

Cython signature: void addCluster(libcpp_pair[int,int] cell_index, int & cluster_index) Adds a cluster to this grid cell

getCellCount

Cython signature: int getCellCount() Returns number of grid cells occupied by one or more clusters

getGridSpacingX

Cython signature: libcpp_vector[double] getGridSpacingX()

getGridSpacingY

Cython signature: libcpp_vector[double] getGridSpacingY()

getIndex

Cython signature: libcpp_pair[int,int] getIndex(DPosition2 position)

isNonEmptyCell

Cython signature: bool isNonEmptyCell(libcpp_pair[int,int] cell_index) Checks if there are clusters at this cell index

removeAllClusters

Cython signature: void removeAllClusters() Removes all clusters from this grid (and hence all cells)

removeCluster

Cython signature: void removeCluster(libcpp_pair[int,int] cell_index, int & cluster_index) Removes a cluster from this grid cell and removes the cell if no other cluster left

addCluster()

Cython signature: void addCluster(libcpp_pair[int,int] cell_index, int & cluster_index) Adds a cluster to this grid cell

getCellCount()

Cython signature: int getCellCount() Returns number of grid cells occupied by one or more clusters

getGridSpacingX()

Cython signature: libcpp_vector[double] getGridSpacingX()

getGridSpacingY()

Cython signature: libcpp_vector[double] getGridSpacingY()

getIndex()

Cython signature: libcpp_pair[int,int] getIndex(DPosition2 position)

isNonEmptyCell()

Cython signature: bool isNonEmptyCell(libcpp_pair[int,int] cell_index) Checks if there are clusters at this cell index

removeAllClusters()

Cython signature: void removeAllClusters() Removes all clusters from this grid (and hence all cells)

removeCluster()

Cython signature: void removeCluster(libcpp_pair[int,int] cell_index, int & cluster_index) Removes a cluster from this grid cell and removes the cell if no other cluster left