Class Rule

    • Method Detail

      • getRuleNumberID

        public int getRuleNumberID()
      • setRuleNumberID

        public void setRuleNumberID​(int ruleNumberID)
      • getLearningNode

        public RuleActiveLearningNode getLearningNode()
        getLearningNode Method This is the way to pass info for other classes. Implements getLearningNode() in class RuleActiveLearningNode
        Returns:
      • getInstancesSeen

        public long getInstancesSeen()
      • isCovering

        public boolean isCovering​(Instance inst)
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        MOA GUI output
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent
      • updateStatistics

        public void updateStatistics​(Instance instance)
      • tryToExpand

        public boolean tryToExpand​(double splitConfidence,
                                   double tieThreshold)
        Try to Expand method.
        Parameters:
        splitConfidence -
        tieThreshold -
        Returns:
      • split

        public void split()
      • statisticsOtherBranchSplit

        public double[] statisticsOtherBranchSplit()
      • printRule

        public String printRule()
      • debug

        protected void debug​(String string,
                             int level)
      • isAnomaly

        public boolean isAnomaly​(Instance instance,
                                 double uniVariateAnomalyProbabilityThreshold,
                                 double multiVariateAnomalyProbabilityThreshold,
                                 int numberOfInstanceesForAnomaly)
      • computeError

        public double computeError​(Instance instance)
      • updatePageHinckleyTest

        public boolean updatePageHinckleyTest​(double error)
      • getPrediction

        public double[] getPrediction​(Instance instance,
                                      int mode)
      • getPrediction

        public double[] getPrediction​(Instance instance)
      • setBuilder

        public void setBuilder​(Rule.Builder builder)
      • getCurrentError

        public double getCurrentError()