Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo

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

Overview

DoubleFieldInfo defines output for any double type field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo

Returns a new instance of GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo.



1091
1092
1093
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1091

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

Instance Attribute Details

#averageFloat

The average of non-null values of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. Corresponds to the JSON property average

Returns:

  • (Float)


1058
1059
1060
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1058

def average
  @average
end

#maxFloat

The maximum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. Corresponds to the JSON property max

Returns:

  • (Float)


1064
1065
1066
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1064

def max
  @max
end

#minFloat

The minimum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. Corresponds to the JSON property min

Returns:

  • (Float)


1070
1071
1072
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1070

def min
  @min
end

#quartilesArray<Float>

A quartile divide the numebr of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. So, here the quartiles is provided as an ordered list of quartile values, occurring in order Q1, median, Q3. Corresponds to the JSON property quartiles

Returns:

  • (Array<Float>)


1083
1084
1085
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1083

def quartiles
  @quartiles
end

#standard_deviationFloat

The standard deviation of non-null of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. Corresponds to the JSON property standardDeviation

Returns:

  • (Float)


1089
1090
1091
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1089

def standard_deviation
  @standard_deviation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1096
1097
1098
1099
1100
1101
1102
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1096

def update!(**args)
  @average = args[:average] if args.key?(:average)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
  @quartiles = args[:quartiles] if args.key?(:quartiles)
  @standard_deviation = args[:standard_deviation] if args.key?(:standard_deviation)
end