文件名称:anglecos
介绍说明--下载内容均来自于网络,请自行研究使用
利用夹角余弦距离进行样本数据分类。实现步骤主要分为以下两部分:a、待测样品X与训练集里每个样品Xi的距离采用夹角余弦距离公式计算。b、循环计算待测样品和训练集中各已知样品之间的距离,找出距离待测样品最近的已知样品,该已知样品的类别就是待测样品的类别。-Using the sample data classification Angle cosine distance.Implementation steps are divided into the following two parts: a, sample under test with each of the samples in the training set X Xi distance using the included Angle cosine distance formula.B, loop calculation under test samples and the distance between the known samples training focus, find out the known closest to the sample under test samples, the samples of known category is the category of the sample under test.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
anglecos\anglecos.m
anglecos