datastructure.h

来自「k均值聚类的算法」· C头文件 代码 · 共 34 行

H
34
字号

#ifndef _DATASTRUCTURE
#define _DATASTRUCTURE

#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <math.h>

using namespace std;

struct ScoreError
{
	double Score;
	int Error;
};

struct DistanceToCentroid
{
	int FeatureId;
	double Distance;
};

typedef map<int, double> FeatureVector;

typedef map<int, ScoreError> CountScore;

typedef vector<FeatureVector> Cluster;

typedef vector<int> ClusterID;


#endif

⌨️ 快捷键说明

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