protected double categoryUtility() throws Exception {
  if (m_children == null) {
    throw new Exception("categoryUtility: No children!");
  }
  double totalCU=0;
  for (int i=0; i < m_children.size(); i++) {
    CNode child=m_children.get(i);
    totalCU+=categoryUtilityChild(child);
  }
  totalCU/=m_children.size();
  return totalCU;
}

protected double categoryUtility ( ) throws Exception { if ( m_children == null ) { throw new Exception ( "categoryUtility: No children!" ) ; } double totalCU = 0 ; for ( int i = 0 ; i < m_children . size ( ) ; i ++ ) { CNode child = m_children . get ( i ) ; totalCU += categoryUtilityChild ( child ) ; } totalCU /= m_children . size ( ) ; return totalCU ; }
computes the utility of all children with respect to this node
