Class TargetCounts

    • Method Detail

      • fromNode

        public static TargetCounts fromNode​(DynamicEnum targetType,
                                            TreeNode node)
        Public only as a matter of implementation; clients should not use this method.
        Parameters:
        targetType - the target type
        node - the tree node
        Returns:
        the target counts for the node
      • getTargetType

        public DynamicEnum getTargetType()
        Returns the target type
        Returns:
        the target type
      • getBestClass

        public int getBestClass()
        Returns the most common target class
        Returns:
        the most common target class
      • getTotalCount

        public double getTotalCount()
        Returns the total count across all classes
        Returns:
        the total count across all classes
      • getTargetCount

        public double getTargetCount​(int ordinal)
        Returns the count for the given ordinal
        Parameters:
        ordinal - the ordinal
        Returns:
        the count