Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Other detail in Xmean

  1. #1
    Join Date
    Nov 2015

    Default Other detail in Xmean


    Is it possible for me using the Java API, apart from printing which cluster it belong to, to also print the distance to the cluster center. How to code it in Java. Thank You.

  2. #2
    Join Date
    Aug 2006


    There is a getDistanceF() method in XMeans that returns the distance function used internally. You can also get the cluster centres as an Instances object by calling getClusterCenters(). With these two you can compute the distance from an arbitrary instance to each of the cluster centers.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.