class Linear extends Message

Specify a sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.

Defines num_finite_buckets + 2 (= N) buckets with these boundaries for bucket i: Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).

Generated from protobuf message google.api.Distribution.BucketOptions.Linear

Methods

__construct(array $data = NULL)

Constructor.

int
getNumFiniteBuckets()

Must be greater than 0.

$this
setNumFiniteBuckets(int $var)

Must be greater than 0.

float
getWidth()

Must be greater than 0.

$this
setWidth(float $var)

Must be greater than 0.

float
getOffset()

Lower bound of the first bucket.

$this
setOffset(float $var)

Lower bound of the first bucket.

Details

at line 57
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type int $num_finite_buckets
      Must be greater than 0.
@type float $width
      Must be greater than 0.
@type float $offset
      Lower bound of the first bucket.

}

at line 68
int getNumFiniteBuckets()

Must be greater than 0.

Generated from protobuf field int32 num_finite_buckets = 1;

Return Value

int

at line 80
$this setNumFiniteBuckets(int $var)

Must be greater than 0.

Generated from protobuf field int32 num_finite_buckets = 1;

Parameters

int $var

Return Value

$this

at line 94
float getWidth()

Must be greater than 0.

Generated from protobuf field double width = 2;

Return Value

float

at line 106
$this setWidth(float $var)

Must be greater than 0.

Generated from protobuf field double width = 2;

Parameters

float $var

Return Value

$this

at line 120
float getOffset()

Lower bound of the first bucket.

Generated from protobuf field double offset = 3;

Return Value

float

at line 132
$this setOffset(float $var)

Lower bound of the first bucket.

Generated from protobuf field double offset = 3;

Parameters

float $var

Return Value

$this