Пример #1
0
 private static int sortWordsCount(Word x, Word y)
 {
     if (x.count > y.count)
         return -1;
     else if (x.count < y.count)
         return 1;
     else
         return 0;
 }
Пример #2
0
 private float calcPositionFactor(Word w)
 {
     float factor = 0.0f;
     foreach (var oc in w.occurances)
     {
         factor += oc * PPS;
     }
     return factor;
 }