Class: Google::Apis::LanguageV2::XpsFloat64StatsHistogramBucket

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#countFixnum

The number of data values that are in the bucket, i.e. are between min and max values. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2250
2251
2252
# File 'lib/google/apis/language_v2/classes.rb', line 2250

def count
  @count
end

#maxFloat

The maximum value of the bucket, exclusive unless max = "Infinity", in which case it's inclusive. Corresponds to the JSON property max

Returns:

  • (Float)


2256
2257
2258
# File 'lib/google/apis/language_v2/classes.rb', line 2256

def max
  @max
end

#minFloat

The minimum value of the bucket, inclusive. Corresponds to the JSON property min

Returns:

  • (Float)


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