Class: Google::Apis::LanguageV1beta2::XpsFloat64StatsHistogramBucket
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsFloat64StatsHistogramBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/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.
2569 2570 2571 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2569 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
2556 2557 2558 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2556 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
2562 2563 2564 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2562 def max @max end |
#min ⇒ Float
The minimum value of the bucket, inclusive.
Corresponds to the JSON property min
2567 2568 2569 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2567 def min @min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2574 2575 2576 2577 2578 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2574 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 |