rename to match numbering elsewhere
This commit is contained in:
6
src/pg/test/sql/11_kmeans_test.sql
Normal file
6
src/pg/test/sql/11_kmeans_test.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
\pset format unaligned
|
||||
\set ECHO all
|
||||
|
||||
SELECT count(DISTINCT cluster_no) as clusters from cdb_crankshaft.cdb_kmeans('select * from ppoints', 2);
|
||||
|
||||
SELECT count(*) clusters from (select cdb_crankshaft.CDB_WeightedMean(the_geom, value::NUMERIC), code from ppoints group by code) p;
|
||||
Reference in New Issue
Block a user