ignore demographics from top-n count

This commit is contained in:
Todd Gruben 2014-01-31 16:46:30 -06:00
parent 79b51b6335
commit 391e707649

View file

@ -113,8 +113,10 @@ func (self *Brand) Rank() {
var list RankList
for k, item := range self.bitmap_cache {
if item.bitmap.Count() > 50 {
list = append(list, &Rank{&Pair{k, item.bitmap.Count()}, item.bitmap, item.category})
if k < 9223372036854775808 { //all demographics is greater than 2^63
if item.bitmap.Count() > 50 {
list = append(list, &Rank{&Pair{k, item.bitmap.Count()}, item.bitmap, item.category})
}
}
}
sort.Sort(list)