private boolean getLocalItemSupport ( FPTree . Node node , int [ ] localItemSupport ) { boolean end = true ; Arrays . fill ( localItemSupport , 0 ) ; while ( node != null ) { int support = node . count ; Node parent = node . parent ; while ( parent != null ) { localItemSupport [ parent . id ] += support ; parent = parent . parent ; end = false ; } node = node . next ; } return ! end ; }
Counts the supports of single items in ancestor item sets linked list .