title: Overriding the distance metric in Clustering Algorithms
body: <p>I am trying to implement a K-means clustering algorithm across 3 dimensions.
  Now the requirement is that I want the flexibility to define my own distance metric across any particular dimension. For ex, across dimension 1, I would want to define a simple euclidean distance measure, across dimensions 2 I want to define my own custom distance measure and so on.</p>
  
  <p>Is there a JAVA implementation available for K-means clustering that lets me override the distance metric across any dimension of my choice?</p>
  
  <p>Thanks
  Abhishek S</p>