Class: Google::Apis::LanguageV1::XpsFloat64StatsHistogramBucket

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

Instance Method Summary collapse

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

#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)


2536
2537
2538
# File 'lib/google/apis/language_v1/classes.rb', line 2536

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)


2542
2543
2544
# File 'lib/google/apis/language_v1/classes.rb', line 2542

def max
  @max
end

#minFloat

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

Returns:

  • (Float)


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