Exemple #1
0
 public MinMaxStat(Func <TIn, TOut> selector)
 {
     this.selector = selector;
     resultCounter = new ConcurrentDictionary <TOut, int>();
     resultSet     = new ConcurrentSortedSet <TOut>();
     UpdateValue();
 }
Exemple #2
0
 public PopularStat(int maxSize)
 {
     countSet    = new ConcurrentSortedSet <Tuple <int, T> >();
     resultCount = new ConcurrentDictionary <T, int>();
     MaxSize     = maxSize;
 }
Exemple #3
0
 public TopStat(int maxSize, Func <T, T, bool> comparer)
 {
     this.maxSize = maxSize;
     values       = new ConcurrentSortedSet <T>(comparer);
 }