Description: 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.
To Search:
File list (Check if you may need any files):
anglecos\anglecos.m
anglecos