powered by
Calculates the cosine distance
CosinusDistance(Data)
[1:n,1:n] symmetric matrix, containing the distanes of the cases (rows) for the given data
[1:n,1:d] matrix with n cases, d variables
Michael Thrun
https://en.wikipedia.org/wiki/Cosine_similarity
data(Hepta) distMatrix = CosinusDistance(Hepta$Data)
Run the code above in your browser using DataLab