Class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Numeric
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Numeric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_5/classes.rb,
generated/google/apis/prediction_v1_5/representations.rb,
generated/google/apis/prediction_v1_5/representations.rb
Overview
Description of the numeric values of this feature.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Number of numeric values for this feature in the data set.
-
#mean ⇒ Float
Mean of the numeric values of this feature in the data set.
-
#variance ⇒ Float
Variance of the numeric values of this feature in the data set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Numeric
constructor
A new instance of Numeric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Numeric
Returns a new instance of Numeric
202 203 204 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 202 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of numeric values for this feature in the data set.
Corresponds to the JSON property count
190 191 192 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 190 def count @count end |
#mean ⇒ Float
Mean of the numeric values of this feature in the data set.
Corresponds to the JSON property mean
195 196 197 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 195 def mean @mean end |
#variance ⇒ Float
Variance of the numeric values of this feature in the data set.
Corresponds to the JSON property variance
200 201 202 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 200 def variance @variance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
207 208 209 210 211 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 207 def update!(**args) @count = args[:count] if args.key?(:count) @mean = args[:mean] if args.key?(:mean) @variance = args[:variance] if args.key?(:variance) end |