class Google::Apis::Adexchangebuyer2V2beta1::MetricValue
A metric value, with an expected value and a variance; represents a count that may be either exact or estimated (i.e. when sampled).
Attributes
value[RW]
The expected value of the metric. Corresponds to the JSON property `value` @return [Fixnum]
variance[RW]
The variance (i.e. square of the standard deviation) of the metric value. If value is exact, variance is 0. Can be used to calculate margin of error as a percentage of value, using the following formula, where Z is the standard constant that depends on the desired size of the confidence interval (e.g. for 90% confidence interval, use Z = 1.645): marginOfError = 100 * Z * sqrt( variance) / value Corresponds to the JSON property `variance` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 2654 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 2659 def update!(**args) @value = args[:value] if args.key?(:value) @variance = args[:variance] if args.key?(:variance) end