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.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!