Help! A cluster method in SQL# Database - 数据库
M*7
1 楼
Hi guys, I have a question of cluster method in SQL.
A table contain 3 columns: rownumber, name, value.
I want to cluster the rows according to their values.
Step 1: First I create another table (tracking table), randomly put some
rows from the data table into this tracking table as the seeds.
Step 2: Then I want to calculate the (ith_value_from_datatable - jth_value_
from_trackingtable)**2, and assign ith row of data table into the jth group
according the the smallest distance calculated above.
A table contain 3 columns: rownumber, name, value.
I want to cluster the rows according to their values.
Step 1: First I create another table (tracking table), randomly put some
rows from the data table into this tracking table as the seeds.
Step 2: Then I want to calculate the (ith_value_from_datatable - jth_value_
from_trackingtable)**2, and assign ith row of data table into the jth group
according the the smallest distance calculated above.