changed name of functions for observatory

This commit is contained in:
Andy Eschbacher
2016-03-29 12:18:52 -07:00
parent eecbe39547
commit bc67ae8f69
5 changed files with 20 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
-- Moran's I (global)
CREATE OR REPLACE FUNCTION
cdb_moran (
CDB_AreasOfInterest_Global (
subquery TEXT,
attr_name TEXT,
permutations INT DEFAULT 99,
@@ -17,7 +17,7 @@ $$ LANGUAGE plpythonu;
-- Moran's I Local
CREATE OR REPLACE FUNCTION
cdb_moran_local (
CDB_AreasOfInterest_Local(
subquery TEXT,
attr TEXT,
permutations INT DEFAULT 99,
@@ -34,7 +34,7 @@ $$ LANGUAGE plpythonu;
-- Moran's I Rate (global)
CREATE OR REPLACE FUNCTION
cdb_moran_rate (
CDB_AreasOfInterest_Global_Rate(
subquery TEXT,
numerator TEXT,
denominator TEXT,
@@ -53,7 +53,7 @@ $$ LANGUAGE plpythonu;
-- Moran's I Local Rate
CREATE OR REPLACE FUNCTION
cdb_moran_local_rate(
CDB_AreasOfInterest_Local_Rate(
subquery TEXT,
numerator TEXT,
denominator TEXT,
@@ -86,4 +86,4 @@ $$ LANGUAGE plpythonu;
-- from crankshaft.clustering import moran_local_bv
-- # TODO: use named parameters or a dictionary
-- return moran_local_bv(t, attr1, attr2, permutations, geom_col, id_col, w_type, num_ngbrs)
-- $$ LANGUAGE plpythonu;
-- $$ LANGUAGE plpythonu;