Interface Distribution.LinearBucketsOrBuilder (1.27.0)

public static interface Distribution.LinearBucketsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getNumFiniteBuckets()

public abstract int getNumFiniteBuckets()

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

int32 num_finite_buckets = 1;

Returns
TypeDescription
int

The numFiniteBuckets.

getOffset()

public abstract double getOffset()

The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.

double offset = 3;

Returns
TypeDescription
double

The offset.

getWidth()

public abstract double getWidth()

The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.

double width = 2;

Returns
TypeDescription
double

The width.