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.
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.