⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datastructure.h

📁 k均值聚类的算法
💻 H
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -