Class: Google::Apis::BigqueryV2::ClusterInfo

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

Overview

Information about a single cluster for clustering model.

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) ⇒ ClusterInfo

Returns a new instance of ClusterInfo.



1091
1092
1093
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1091

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

Instance Attribute Details

#centroid_idFixnum

Centroid id. Corresponds to the JSON property centroidId

Returns:

  • (Fixnum)


1078
1079
1080
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1078

def centroid_id
  @centroid_id
end

#cluster_radiusFloat

Cluster radius, the average distance from centroid to each point assigned to the cluster. Corresponds to the JSON property clusterRadius

Returns:

  • (Float)


1084
1085
1086
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1084

def cluster_radius
  @cluster_radius
end

#cluster_sizeFixnum

Cluster size, the total number of points assigned to the cluster. Corresponds to the JSON property clusterSize

Returns:

  • (Fixnum)


1089
1090
1091
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1089

def cluster_size
  @cluster_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1096
1097
1098
1099
1100
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1096

def update!(**args)
  @centroid_id = args[:centroid_id] if args.key?(:centroid_id)
  @cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius)
  @cluster_size = args[:cluster_size] if args.key?(:cluster_size)
end