org.apache.kafka.common.metrics.stats
Class Histogram.LinearBinScheme

java.lang.Object
  extended by org.apache.kafka.common.metrics.stats.Histogram.LinearBinScheme
All Implemented Interfaces:
Histogram.BinScheme
Enclosing class:
Histogram

public static class Histogram.LinearBinScheme
extends java.lang.Object
implements Histogram.BinScheme


Constructor Summary
Histogram.LinearBinScheme(int numBins, double max)
           
 
Method Summary
 int bins()
           
 double fromBin(int b)
           
 int toBin(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Histogram.LinearBinScheme

public Histogram.LinearBinScheme(int numBins,
                                 double max)
Method Detail

bins

public int bins()
Specified by:
bins in interface Histogram.BinScheme

fromBin

public double fromBin(int b)
Specified by:
fromBin in interface Histogram.BinScheme

toBin

public int toBin(double x)
Specified by:
toBin in interface Histogram.BinScheme