示例#1
0
文件: CombStat.java 项目: vrodic/Clus
 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);
 }