Cloud AutoML V1beta1 Client - Class HistogramBucket (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class HistogramBucket.

A bucket of a histogram.

Generated from protobuf message google.cloud.automl.v1beta1.Float64Stats.HistogramBucket

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ min float

The minimum value of the bucket, inclusive.

↳ max float

The maximum value of the bucket, exclusive unless max = "Infinity", in which case it's inclusive.

↳ count int|string

The number of data values that are in the bucket, i.e. are between min and max values.

getMin

The minimum value of the bucket, inclusive.

Returns
TypeDescription
float

setMin

The minimum value of the bucket, inclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMax

The maximum value of the bucket, exclusive unless max = "Infinity", in which case it's inclusive.

Returns
TypeDescription
float

setMax

The maximum value of the bucket, exclusive unless max = "Infinity", in which case it's inclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getCount

The number of data values that are in the bucket, i.e. are between min and max values.

Returns
TypeDescription
int|string

setCount

The number of data values that are in the bucket, i.e. are between min and max values.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this