densitymap.h

来自「聚类算法Enclus的源程序」· C头文件 代码 · 共 21 行

H
21
字号
class HashForest;  // foward declaration

// Constants
const bool READ_ONCE = true;

// Density Map for a number of subspaces
class DensityMap {
public:
  DensityMap(const Param& prm, const HashTree& ht);
  ~DensityMap();
  void setSubspace(int i, const IntList& s);
  void build_grid(float** dataset, HashForest& hf, HashTree& ht);
  void cal_stat(int ss_no, HashForest& hf, HashTree& ht);
private:
  int total_dim;  // Total no of dimensions
  int cur_dim;    // No of dimensions of current pass
  int no_ss;      // No of subspaces
  IntList* ss;    // Subspaces
  NArray* na;     // Density map for the subspaces
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?