Class: Google::Apis::LanguageV2::XpsFloat64StatsHistogramBucket
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsFloat64StatsHistogramBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
A bucket of a histogram.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The number of data values that are in the bucket, i.e.
-
#max ⇒ Float
The maximum value of the bucket, exclusive unless max =
"Infinity"
, in which case it's inclusive. -
#min ⇒ Float
The minimum value of the bucket, inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsFloat64StatsHistogramBucket
constructor
A new instance of XpsFloat64StatsHistogramBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsFloat64StatsHistogramBucket
Returns a new instance of XpsFloat64StatsHistogramBucket.
2263 2264 2265 |
# File 'lib/google/apis/language_v2/classes.rb', line 2263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The number of data values that are in the bucket, i.e. are between min and max
values.
Corresponds to the JSON property count
2250 2251 2252 |
# File 'lib/google/apis/language_v2/classes.rb', line 2250 def count @count end |
#max ⇒ Float
The maximum value of the bucket, exclusive unless max = "Infinity"
, in which
case it's inclusive.
Corresponds to the JSON property max
2256 2257 2258 |
# File 'lib/google/apis/language_v2/classes.rb', line 2256 def max @max end |
#min ⇒ Float
The minimum value of the bucket, inclusive.
Corresponds to the JSON property min
2261 2262 2263 |
# File 'lib/google/apis/language_v2/classes.rb', line 2261 def min @min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2268 2269 2270 2271 2272 |
# File 'lib/google/apis/language_v2/classes.rb', line 2268 def update!(**args) @count = args[:count] if args.key?(:count) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) end |