weightByDistance = Utils.getFlag('W',options);
m_weightByDistance = Utils.getFlag('W',options);
  public void setOptions(String[] options) throws Exception  {    String optionString;    resetOptions();        weightByDistance = Utils.getFlag('W',options);    optionString = Utils.getOption('M',options);    if (optionString.length() != 0)      {	m_sampleM = Integer.parseInt(optionString);      }    optionString = Utils.getOption('D',options);    if (optionString.length() != 0)      {	m_seed = Integer.parseInt(optionString);      }    optionString = Utils.getOption('K',options);    if (optionString.length() != 0)      {	m_Knn = Integer.parseInt(optionString);	if (m_Knn <=0)	  {	    throw new Exception("number of nearest neighbours must be > 0!");	  }      }        optionString = Utils.getOption('A',options);    if (optionString.length() != 0)      {	m_sigma = Integer.parseInt(optionString);	if (m_sigma <=0)	  {	    throw new Exception("value of sigma must bee > 0!");	  }      }  }