Exemplo n.º 1
0
        private static int GetPercentile(IReadOnlyList <int> orderedList, PercentileKey percentileKey)
        {
            var index = (int)Math.Ceiling(percentileKey / 100 * orderedList.Count);

            if (index > 0)
            {
                index--;
            }

            return(orderedList[index]);
        }
Exemplo n.º 2
0
 public Percentile(PercentileKey key, int milliseconds)
 {
     Key          = key;
     Milliseconds = milliseconds;
 }