lib/fpgrowth/miner/pattern_base_extractor.rb
# Method accountable of reading the upper part of the branch
#
# Each step, it makes a new node with the same item, but with minimum support
# Then the new node is added to a list
# Finally, the list is reversed
#
Method accountable of reading the upper part of the branch
Each step, it makes a new node with the same item, but with minimum support
Then the new node is added to a list
Finally, the list is reversed
Method accountable of reading the upper part of the branch Each step it makes a new node with the same item but with minimum support Then the new node is added to a list Finally the list is reversed
def down_to_top_traversal(current_branch=@current_branch, vertical_cursor=@vertical_cursor)
        @vertical_cursor = vertical_cursor
        while @vertical_cursor != nil and @vertical_cursor.item != nil
          down_to_top_traversal_step(current_branch)
          @vertical_cursor = @vertical_cursor.parent
        end
        current_branch.reverse!
      end
def down_to_top_traversal ( current_branch = @current_branch , vertical_cursor = @vertical_cursor ) @vertical_cursor = vertical_cursor while @vertical_cursor != nil and @vertical_cursor . item != nil down_to_top_traversal_step ( current_branch ) @vertical_cursor = @vertical_cursor . parent end current_branch . reverse! end
Method accountable of reading the upper part of the branch
Each step, it makes a new node with the same item, but with minimum support
Then the new node is added to a list
Finally, the list is reversed
Method accountable of reading the upper part of the branch Each step it makes a new node with the same item but with minimum support Then the new node is added to a list Finally the list is reversed
current_branch
<not_specific>
vertical_cursor
<not_specific>