HdrHistogram.HistogramBase.NextNonEquivalentValue C# (CSharp) Méthode

NextNonEquivalentValue() public méthode

Get the next value that is not equivalent to the given value within the histogram's resolution. Where "equivalent" means that value samples recorded for any two equivalent values are counted in a common total count.
public NextNonEquivalentValue ( long value ) : long
value long The given value
Résultat long
        public long NextNonEquivalentValue(long value)
        {
            return LowestEquivalentValue(value) + SizeOfEquivalentValueRange(value);
        }

Usage Example

Exemple #1
0
 /// <summary>
 /// Get the highest value that is equivalent to the given value within the histogram's resolution.
 /// Where "equivalent" means that value samples recorded for any two equivalent values are counted in a common
 /// total count.
 /// </summary>
 /// <param name="histogram">The histogram to operate on</param>
 /// <param name="value">The given value</param>
 /// <returns>The highest value that is equivalent to the given value within the histogram's resolution.</returns>
 public static long HighestEquivalentValue(this HistogramBase histogram, long value)
 {
     return(histogram.NextNonEquivalentValue(value) - 1);
 }