Google Cloud Dialogflow Cx V3 Client - Class Metric (0.4.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Metric.

Metric and corresponding confidence intervals.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Experiment.Result.Metric

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Experiment \ Result

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Ratio-based metric type. Only one of type or count_type is specified in each Metric.

↳ count_type int

Count-based metric type. Only one of type or count_type is specified in each Metric.

↳ ratio float

Ratio value of a metric.

↳ count float

Count value of a metric.

↳ confidence_interval Google\Cloud\Dialogflow\Cx\V3\Experiment\Result\ConfidenceInterval

The probability that the treatment is better than all other treatments in the experiment

getType

Ratio-based metric type. Only one of type or count_type is specified in each Metric.

Returns
Type Description
int

setType

Ratio-based metric type. Only one of type or count_type is specified in each Metric.

Parameter
Name Description
var int
Returns
Type Description
$this

getCountType

Count-based metric type. Only one of type or count_type is specified in each Metric.

Returns
Type Description
int

setCountType

Count-based metric type. Only one of type or count_type is specified in each Metric.

Parameter
Name Description
var int
Returns
Type Description
$this

getRatio

Ratio value of a metric.

Returns
Type Description
float

hasRatio

setRatio

Ratio value of a metric.

Parameter
Name Description
var float
Returns
Type Description
$this

getCount

Count value of a metric.

Returns
Type Description
float

hasCount

setCount

Count value of a metric.

Parameter
Name Description
var float
Returns
Type Description
$this

getConfidenceInterval

The probability that the treatment is better than all other treatments in the experiment

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\Experiment\Result\ConfidenceInterval|null

hasConfidenceInterval

clearConfidenceInterval

setConfidenceInterval

The probability that the treatment is better than all other treatments in the experiment

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\Experiment\Result\ConfidenceInterval
Returns
Type Description
$this

getValue

Returns
Type Description
string