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