npoint.h

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

H
22
字号
// NPoint.h
// -------------------------------------------------------------------------
// NPoint is a class for representing a set of N-dimensional points
//

class NPoint {
public:
  NPoint();
  NPoint(int d);
  NPoint(const NPoint& p);
  ~NPoint();
  void show();
  void show(FILE* fp);
  void set_value(int d, float v);
  float& operator[] (int d) { return coord[d]; }
  int get_dim()  { return dim; }
private:
  int dim;
  float* coord;
};

⌨️ 快捷键说明

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