adding number of classes options
This commit is contained in:
parent
0eb3db3c1d
commit
d1a267febb
@ -9,7 +9,6 @@
|
|||||||
-- SELECT CDB_SpatialMarkov('SELECT * FROM real_estate',
|
-- SELECT CDB_SpatialMarkov('SELECT * FROM real_estate',
|
||||||
-- Array['date_1', 'date_2', 'date_3'])
|
-- Array['date_1', 'date_2', 'date_3'])
|
||||||
|
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION
|
CREATE OR REPLACE FUNCTION
|
||||||
CDB_SpatialMarkov (
|
CDB_SpatialMarkov (
|
||||||
subquery TEXT,
|
subquery TEXT,
|
||||||
@ -27,8 +26,7 @@ AS $$
|
|||||||
from crankshaft.space_time_dynamics import spatial_markov_trend
|
from crankshaft.space_time_dynamics import spatial_markov_trend
|
||||||
|
|
||||||
## TODO: use named parameters or a dictionary
|
## TODO: use named parameters or a dictionary
|
||||||
|
return spatial_markov_trend(subquery, time_cols, num_classes, w_type, num_ngbrs, permutations, geom_col, id_col)
|
||||||
return spatial_markov_trend(subquery, time_cols, permutations, geom_col, id_col, w_type, num_ngbrs)
|
|
||||||
$$ LANGUAGE plpythonu;
|
$$ LANGUAGE plpythonu;
|
||||||
|
|
||||||
-- input table format: identical to above but in a predictable format
|
-- input table format: identical to above but in a predictable format
|
||||||
|
Loading…
Reference in New Issue
Block a user