Esempio n. 1
0
  /**
   * Returns if the classifier of the class subsumes the classifier passed as a parameter.
   *
   * @param cl is the subsumed classifier.
   * @return a boolean indicating if it subsumes
   */
  public boolean doesSubsume(Classifier cl) {

    if (rep.getAction() != cl.rep.getAction()) return false;

    if (parameters.couldSubsume()) {
      if (rep.isMoreGeneral(cl.rep)) {
        return true;
      }
    }
    return false;
  } // end doesSubsume
Esempio n. 2
0
 /**
  * Indicates if the classifier is more general than the classifier passed as a parameter.
  *
  * @param cl is the classifier to which the current classifier is compared.
  * @return a boolean indicating if the current classifier is more general
  */
 public boolean isMoreGeneral(Classifier cl) {
   return rep.isMoreGeneral(cl.rep);
 }