Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Numeric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb

Overview

Description of the numeric values of this feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Numeric

Returns a new instance of Numeric.



202
203
204
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 202

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

Instance Attribute Details

#countString

Number of numeric values for this feature in the data set. Corresponds to the JSON property count

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 190

def count
  @count
end

#meanString

Mean of the numeric values of this feature in the data set. Corresponds to the JSON property mean

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 195

def mean
  @mean
end

#varianceString

Variance of the numeric values of this feature in the data set. Corresponds to the JSON property variance

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/prediction_v1_6/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_6/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