private boolean isAnomaly(Instance instance,ActiveRule rule){
  boolean isAnomaly=false;
  if (this.noAnomalyDetection == false) {
    if (rule.getInstancesSeen() >= this.anomalyNumInstThreshold) {
      isAnomaly=rule.isAnomaly(instance,this.univariateAnomalyprobabilityThreshold,this.multivariateAnomalyProbabilityThreshold,this.anomalyNumInstThreshold);
    }
  }
  return isAnomaly;
}

private boolean isAnomaly ( Instance instance , ActiveRule rule ) { boolean isAnomaly = false ; if ( this . noAnomalyDetection == false ) { if ( rule . getInstancesSeen ( ) >= this . anomalyNumInstThreshold ) { isAnomaly = rule . isAnomaly ( instance , this . univariateAnomalyprobabilityThreshold , this . multivariateAnomalyProbabilityThreshold , this . anomalyNumInstThreshold ) ; } } return isAnomaly ; }
method to verify if the instance is an anomaly .
