Reference documentation and code samples for the Google API Common Protos Client class Linear.
Specifies a linear 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.
There are num_finite_buckets + 2
(= N) buckets. Bucket i
has the
following boundaries:
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
Namespace
Google \ Api \ Distribution \ BucketOptionsMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ num_finite_buckets |
int
Must be greater than 0. |
↳ width |
float
Must be greater than 0. |
↳ offset |
float
Lower bound of the first bucket. |
getNumFiniteBuckets
Must be greater than 0.
Returns | |
---|---|
Type | Description |
int |
setNumFiniteBuckets
Must be greater than 0.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getWidth
Must be greater than 0.
Returns | |
---|---|
Type | Description |
float |
setWidth
Must be greater than 0.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getOffset
Lower bound of the first bucket.
Returns | |
---|---|
Type | Description |
float |
setOffset
Lower bound of the first bucket.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |