SLU-TMI / TextMining.jl

Other
24 stars 7 forks source link

Norm distance and distance matrix #87

Closed mtabor150 closed 9 years ago

mtabor150 commented 9 years ago

I have modified the feature vector type to keep a running summation of feature values (fv.total) and vector length (fv.length). Also, I modified dist_taxicab, dist_euclidean, and dist_infinity to calculate the normed distance between vectors. I have updated the various function that take distance functions as arguments to reflect this change. Lastly, I made a dist_matrix function that takes a cluster and returns the distances between all the vectors in the cluster.