资源简介

在vs2008上用c++实现的knn分类器,内含测试数据,是初学者的好东西

资源截图

代码片段和文件信息

#include
#include
using namespace std;


#define K 5

void main()
{
FILE *fp;
float Iris[60][5] ={
{5.13.51.40.21}
{4.931.40.21}
{4.73.21.30.21}
{4.63.11.50.21}
{53.61.40.21}
{5.43.91.70.41}
{4.63.41.40.31}
{53.41.50.21}
{4.42.91.40.21}
{4.93.11.50.11}
{5.43.71.50.21}
{4.83.41.60.21}
{4.831.40.11}
{4.331.10.11}
{5.841.20.21}
{5.74.41.50.41}
{5.43.91.30.41}
{5.13.51.40.31}
{5.73.81.70.31}
{5.13.81.50.31}
{73.24.71.42}
{6.43.24.51.52}
{6.93.14.91.52}
{5.52.341.32}
{6.52.84.61.52}
{5.72.84.51.32}
{6.33.34.71.62}
{4.92.43.312}
{6.62.94.61.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-01-25 21:26  k-近邻\
     目录           0  2013-12-08 23:01  k-近邻\Debug\
     文件       36864  2013-12-13 17:49  k-近邻\Debug\kjinlinq.exe
     文件      374744  2013-12-13 17:49  k-近邻\Debug\kjinlinq.ilk
     文件      584704  2013-12-13 17:49  k-近邻\Debug\kjinlinq.pdb
     目录           0  2014-04-08 18:15  k-近邻\kjinlinq\
     目录           0  2013-12-13 17:49  k-近邻\kjinlinq\Debug\
     文件       35374  2013-12-13 17:49  k-近邻\kjinlinq\Debug\BuildLog.htm
     文件         663  2013-12-08 22:57  k-近邻\kjinlinq\Debug\kjinlinq.exe.embed.manifest
     文件         728  2013-12-08 22:57  k-近邻\kjinlinq\Debug\kjinlinq.exe.embed.manifest.res
     文件         621  2013-12-13 17:49  k-近邻\kjinlinq\Debug\kjinlinq.exe.intermediate.manifest
     文件       47970  2013-12-13 17:49  k-近邻\kjinlinq\Debug\kjinlinq.obj
     文件          65  2013-12-13 17:49  k-近邻\kjinlinq\Debug\mt.dep
     文件      232448  2013-12-13 17:49  k-近邻\kjinlinq\Debug\vc90.idb
     文件      217088  2013-12-13 17:49  k-近邻\kjinlinq\Debug\vc90.pdb
     文件        1626  2013-12-08 21:36  k-近邻\kjinlinq\Iris90.txt
     文件        3597  2014-04-08 18:15  k-近邻\kjinlinq\kjinlinq.cpp
     文件        3922  2013-12-08 22:57  k-近邻\kjinlinq\kjinlinq.vcproj
     文件        1421  2014-04-08 18:15  k-近邻\kjinlinq\kjinlinq.vcproj.yangguang-PC.yangguang.user
     文件     1625088  2014-04-08 18:15  k-近邻\kjinlinq.ncb
     文件         890  2013-12-08 22:56  k-近邻\kjinlinq.sln
     文件        9216  2014-04-08 18:15  k-近邻\kjinlinq.suo
     文件       15041  2013-12-08 23:08  k-近邻\捕sfsdf获.PNG
     文件       23432  2013-12-13 17:51  k-近邻\捕获.PNG

评论

共有 条评论