public double getSVarSDiff(ClusAttributeWeights scale, ClusStatistic other) { int nbTargetNom = m_ClassStat.getNbNominalAttributes(); int nbTargetNum = m_RegStat.getNbNumericAttributes(); ClassificationStat ocls = ((CombStat) other).getClassificationStat(); RegressionStat oreg = ((CombStat) other).getRegressionStat(); return (m_ClassStat.getSVarSDiff(scale, ocls) * nbTargetNom + m_RegStat.getSVarSDiff(scale, oreg) * nbTargetNum) / (nbTargetNom + nbTargetNum); }