Activity

We can use Vector operators in addPoint and computeCentroid methods of Canopy class. There by, this can be optimized for Sparse vector.Also, by using vector operators, we are hiding the implementation details and reusing the existing code in Sparse Vector, Dense Vector classes.

Pallavi Palleti
added a comment - 07/Aug/08 05:37 We can use Vector operators in addPoint and computeCentroid methods of Canopy class. There by, this can be optimized for Sparse vector.Also, by using vector operators, we are hiding the implementation details and reusing the existing code in Sparse Vector, Dense Vector classes.