String nnSearchClass = Utils.getOption('D', options);
String nnSearchClass = Utils.getOption('A', options);
  public void setOptions(String[] options) throws Exception {    String nnSearchClass = Utils.getOption('D', options);    if(nnSearchClass.length() != 0) {      String nnSearchClassSpec[] = Utils.splitOptions(nnSearchClass);      if(nnSearchClassSpec.length == 0) {         throw new Exception("Invalid DistanceFunction specification string.");       }      String className = nnSearchClassSpec[0];      nnSearchClassSpec[0] = "";      setDistanceFunction( (DistanceFunction)                            Utils.forName( NearestNeighbourSearch.class,                                            className, nnSearchClassSpec) );    }    else       this.setDistanceFunction(new EuclideanDistance());    }