System.out.println(probs[j] + " ");
  public double[] distributionForInstance(Instance instance) throws Exception {        double [] probs = new double[instance.numClasses()];    int attIndex;        for (int j = 0; j < instance.numClasses(); j++) {      probs[j] = 1;      Enumeration enumAtts = instance.enumerateAttributes();      attIndex = 0;      while (enumAtts.hasMoreElements()) {	Attribute attribute = (Attribute) enumAtts.nextElement();	if (!instance.isMissing(attribute)) {	  if (attribute.isNominal()) {	    probs[j] *= m_Counts[j][attIndex][(int)instance.value(attribute)];	  } else {	    probs[j] *= normalDens(instance.value(attribute),				   m_Means[j][attIndex],				   m_Devs[j][attIndex]);}	}	attIndex++;      }      System.out.println(probs[j] + " ");      probs[j] *= m_Priors[j];    }    System.out.println();    // Normalize probabilities    Utils.normalize(probs);    return probs;  }