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

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

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_5/classes.rb', line 202

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

Instance Attribute Details

#countFixnum

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

Returns:

  • (Fixnum)


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

def count
  @count
end

#meanFloat

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

Returns:

  • (Float)


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

def mean
  @mean
end

#varianceFloat

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

Returns:

  • (Float)


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