Exemple #1
0
 public FrequencyTrackerResult(MultiperiodFrequencyTracker <TKey> tracker, TKey key, IEnumerable <Proportion> proportions = null)
 {
     Tracker         = tracker;
     Key             = key;
     this.Proportion = new Proportion(0, ulong.MaxValue);
     if (proportions == null)
     {
         return;
     }
     foreach (Proportion proportion in proportions)
     {
         if (proportion.AsDouble > Proportion.AsDouble)
         {
             this.Proportion = proportion;
         }
     }
 }
Exemple #2
0
 public FrequencyTrackerResult(MultiperiodFrequencyTracker <TKey> tracker, TKey key, Proportion proportion)
 {
     Tracker         = tracker;
     Key             = key;
     this.Proportion = proportion;
 }