Class MCTreeNode

    • Field Detail

      • cacheRetrievals

        public static final java.util.concurrent.atomic.AtomicInteger cacheRetrievals
    • Constructor Detail

      • MCTreeNode

        public MCTreeNode​(java.util.List<java.lang.Integer> containedClasses)
      • MCTreeNode

        public MCTreeNode​(java.util.List<java.lang.Integer> containedClasses,
                          EMCNodeType nodeType,
                          java.lang.String classifierID)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • MCTreeNode

        public MCTreeNode​(java.util.List<java.lang.Integer> containedClasses,
                          EMCNodeType nodeType,
                          weka.classifiers.Classifier baseClassifier)
    • Method Detail

      • addChild

        public void addChild​(MCTreeNode newNode)
      • getChildren

        public java.util.List<MCTreeNode> getChildren()
      • isCompletelyConfigured

        public boolean isCompletelyConfigured()
      • buildClassifier

        public void buildClassifier​(weka.core.Instances data)
                             throws java.lang.Exception
        Specified by:
        buildClassifier in interface weka.classifiers.Classifier
        Throws:
        java.lang.Exception
      • distributionForInstance

        public void distributionForInstance​(weka.core.Instance instance,
                                            double[] distribution)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • distributionForInstance

        public double[] distributionForInstance​(weka.core.Instance instance)
                                         throws java.lang.Exception
        Specified by:
        distributionForInstance in interface weka.classifiers.Classifier
        Throws:
        java.lang.Exception
      • getCapabilities

        public weka.core.Capabilities getCapabilities()
        Specified by:
        getCapabilities in interface weka.classifiers.Classifier
      • clearCache

        public static void clearCache()
      • getClassifierCache

        public static java.util.Map<java.lang.String,​weka.classifiers.Classifier> getClassifierCache()
      • getClassifier

        public weka.classifiers.Classifier getClassifier()
      • setBaseClassifier

        public void setBaseClassifier​(weka.classifiers.Classifier classifier)
      • setNodeType

        public void setNodeType​(EMCNodeType nodeType)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringWithOffset

        public java.lang.String toStringWithOffset()
      • toStringWithOffset

        public java.lang.String toStringWithOffset​(java.lang.String offset)
      • iterator

        public java.util.Iterator<MCTreeNode> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<MCTreeNode>