Class: Google::Apis::LanguageV1::XpsFloat64StatsHistogramBucket
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsFloat64StatsHistogramBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/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.
2549 2550 2551 |
# File 'lib/google/apis/language_v1/classes.rb', line 2549 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
2536 2537 2538 |
# File 'lib/google/apis/language_v1/classes.rb', line 2536 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
2542 2543 2544 |
# File 'lib/google/apis/language_v1/classes.rb', line 2542 def max @max end |
#min ⇒ Float
The minimum value of the bucket, inclusive.
Corresponds to the JSON property min
2547 2548 2549 |
# File 'lib/google/apis/language_v1/classes.rb', line 2547 def min @min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2554 2555 2556 2557 2558 |
# File 'lib/google/apis/language_v1/classes.rb', line 2554 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 |