Class: Google::Apis::LanguageV1beta2::XpsFloat64StatsHistogramBucket

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

Instance Method Summary collapse

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

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


2556
2557
2558
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2556

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)


2562
2563
2564
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2562

def max
  @max
end

#minFloat

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

Returns:

  • (Float)


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