NextNonEquivalentValue() public method

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
return long
Ejemplo n.º 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);
 }