Class: Google::Apis::LanguageV1beta2::XpsFloat64Stats

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

The data statistics of a series of FLOAT64 values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsFloat64Stats

Returns a new instance of XpsFloat64Stats.



2529
2530
2531
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2529

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#common_statsGoogle::Apis::LanguageV1beta2::XpsCommonStats

Common statistics for a column with a specified data type. Corresponds to the JSON property commonStats



2501
2502
2503
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2501

def common_stats
  @common_stats
end

#histogram_bucketsArray<Google::Apis::LanguageV1beta2::XpsFloat64StatsHistogramBucket>

Histogram buckets of the data series. Sorted by the min value of the bucket, ascendingly, and the number of the buckets is dynamically generated. The buckets are non-overlapping and completely cover whole FLOAT64 range with min of first bucket being "-Infinity", and max of the last one being "Infinity" . Corresponds to the JSON property histogramBuckets



2510
2511
2512
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2510

def histogram_buckets
  @histogram_buckets
end

#meanFloat

The mean of the series. Corresponds to the JSON property mean

Returns:

  • (Float)


2515
2516
2517
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2515

def mean
  @mean
end

#quantilesArray<Float>

Ordered from 0 to k k-quantile values of the data series of n values. The value at index i is, approximately, the i*n/k-th smallest value in the series; for i = 0 and i = k these are, respectively, the min and max values. Corresponds to the JSON property quantiles

Returns:

  • (Array<Float>)


2522
2523
2524
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2522

def quantiles
  @quantiles
end

#standard_deviationFloat

The standard deviation of the series. Corresponds to the JSON property standardDeviation

Returns:

  • (Float)


2527
2528
2529
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2527

def standard_deviation
  @standard_deviation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2534
2535
2536
2537
2538
2539
2540
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2534

def update!(**args)
  @common_stats = args[:common_stats] if args.key?(:common_stats)
  @histogram_buckets = args[:histogram_buckets] if args.key?(:histogram_buckets)
  @mean = args[:mean] if args.key?(:mean)
  @quantiles = args[:quantiles] if args.key?(:quantiles)
  @standard_deviation = args[:standard_deviation] if args.key?(:standard_deviation)
end