Google Cloud Dialogflow Cx V3 Client - Class Metric (0.1.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
NameDescription
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
TypeDescription
int

setType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCountType

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

Returns
TypeDescription
int

setCountType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRatio

Ratio value of a metric.

Returns
TypeDescription
float

hasRatio

setRatio

Ratio value of a metric.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getCount

Count value of a metric.

Returns
TypeDescription
float

hasCount

setCount

Count value of a metric.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getConfidenceInterval

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

Returns
TypeDescription
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
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Experiment\Result\ConfidenceInterval
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string