文件名称:knnalgorithm
介绍说明--下载内容均来自于网络,请自行研究使用
k最近邻算法,给出训练样本和测试样本,通过样本间欧氏距离或是绝对距离来寻找测试样本的k个近邻,并根据k个实例里多数所属的类将该测试样本归为该类。-k-nearest neighbor algorithm, given the training and testing samples by the Euclidean distance between the samples or the absolute distance to find the k nearest neighbors of the test sample and the test samples according to class k instances where the majority belongs classified as class .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
knnalgorithm.m