add test for moran global
This commit is contained in:
parent
24b9cda5aa
commit
dc150e6936
@ -5,6 +5,12 @@ SET client_min_messages TO WARNING;
|
|||||||
\set ECHO none
|
\set ECHO none
|
||||||
_cdb_random_seeds
|
_cdb_random_seeds
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
moran|significance
|
||||||
|
0.3399|-0.0196
|
||||||
|
(1 row)
|
||||||
|
_cdb_random_seeds
|
||||||
|
|
||||||
(1 row)
|
(1 row)
|
||||||
code|quads
|
code|quads
|
||||||
01|HH
|
01|HH
|
||||||
|
@ -6,6 +6,14 @@
|
|||||||
-- Areas of Interest functions perform some nondeterministic computations
|
-- Areas of Interest functions perform some nondeterministic computations
|
||||||
-- (to estimate the significance); we will set the seeds for the RNGs
|
-- (to estimate the significance); we will set the seeds for the RNGs
|
||||||
-- that affect those results to have repeateble results
|
-- that affect those results to have repeateble results
|
||||||
|
|
||||||
|
-- Moran's I Global
|
||||||
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
|
|
||||||
|
SELECT round(moran, 4) As moran, round(significance, 4) As significance
|
||||||
|
FROM cdb_crankshaft.CDB_AreasOfInterestGlobal('SELECT * FROM ppoints', 'value') m(moran, significance);
|
||||||
|
|
||||||
|
-- Moran's I Local
|
||||||
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
|
|
||||||
SELECT ppoints.code, m.quads
|
SELECT ppoints.code, m.quads
|
||||||
|
Loading…
Reference in New Issue
Block a user