Instances insts = new Instances(new java.io.FileReader(args[0])); KDTree tree = new KDTree(); DistanceFunction df = new EuclideanDistance(); df.setInstances(insts); tree.setInstances(insts); tree.setDistanceFunction(df); System.out.println(tree.toString());
  public static void main(String [] args) {    try {      if (args.length < 1 ) {	System.err.println("Usage : weka.gui.visualize.VisualizePanel "			   +"<dataset> [<dataset> <dataset>...]");	System.exit(1);      }    }catch (Exception ex) {      ex.printStackTrace();      System.err.println(ex.getMessage());    }  }