Class: Google::Apis::LanguageV2::XpsFloat64Stats
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsFloat64Stats
- 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
The data statistics of a series of FLOAT64 values.
Instance Attribute Summary collapse
-
#common_stats ⇒ Google::Apis::LanguageV2::XpsCommonStats
Common statistics for a column with a specified data type.
-
#histogram_buckets ⇒ Array<Google::Apis::LanguageV2::XpsFloat64StatsHistogramBucket>
Histogram buckets of the data series.
-
#mean ⇒ Float
The mean of the series.
-
#quantiles ⇒ Array<Float>
Ordered from 0 to k k-quantile values of the data series of n values.
-
#standard_deviation ⇒ Float
The standard deviation of the series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsFloat64Stats
constructor
A new instance of XpsFloat64Stats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsFloat64Stats
Returns a new instance of XpsFloat64Stats.
2228 2229 2230 |
# File 'lib/google/apis/language_v2/classes.rb', line 2228 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_stats ⇒ Google::Apis::LanguageV2::XpsCommonStats
Common statistics for a column with a specified data type.
Corresponds to the JSON property commonStats
2200 2201 2202 |
# File 'lib/google/apis/language_v2/classes.rb', line 2200 def common_stats @common_stats end |
#histogram_buckets ⇒ Array<Google::Apis::LanguageV2::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
2209 2210 2211 |
# File 'lib/google/apis/language_v2/classes.rb', line 2209 def histogram_buckets @histogram_buckets end |
#mean ⇒ Float
The mean of the series.
Corresponds to the JSON property mean
2214 2215 2216 |
# File 'lib/google/apis/language_v2/classes.rb', line 2214 def mean @mean end |
#quantiles ⇒ Array<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
2221 2222 2223 |
# File 'lib/google/apis/language_v2/classes.rb', line 2221 def quantiles @quantiles end |
#standard_deviation ⇒ Float
The standard deviation of the series.
Corresponds to the JSON property standardDeviation
2226 2227 2228 |
# File 'lib/google/apis/language_v2/classes.rb', line 2226 def standard_deviation @standard_deviation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2233 2234 2235 2236 2237 2238 2239 |
# File 'lib/google/apis/language_v2/classes.rb', line 2233 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 |