Rename cdb_random_seeds as 'internal'
This commit is contained in:
parent
f22b8334e0
commit
0742e3f72a
@ -1,7 +1,8 @@
|
|||||||
|
-- Internal function.
|
||||||
-- Set the seeds of the RNGs (Random Number Generators)
|
-- Set the seeds of the RNGs (Random Number Generators)
|
||||||
-- used internally.
|
-- used internally.
|
||||||
CREATE OR REPLACE FUNCTION
|
CREATE OR REPLACE FUNCTION
|
||||||
cdb_random_seeds (seed_value INTEGER) RETURNS VOID
|
_cdb_random_seeds (seed_value INTEGER) RETURNS VOID
|
||||||
AS $$
|
AS $$
|
||||||
from crankshaft import random_seeds
|
from crankshaft import random_seeds
|
||||||
random_seeds.set_random_seeds(seed_value)
|
random_seeds.set_random_seeds(seed_value)
|
||||||
|
@ -113,9 +113,9 @@ INSERT INTO ppoints2 VALUES
|
|||||||
-- Moral functions perform some nondeterministic computations
|
-- Moral 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
|
||||||
SELECT cdb_crankshaft.cdb_random_seeds(1234);
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
cdb_random_seeds
|
_cdb_random_seeds
|
||||||
------------------
|
-------------------
|
||||||
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
@ -186,9 +186,9 @@ CONTEXT: PL/Python function "cdb_moran_local"
|
|||||||
52 | LL
|
52 | LL
|
||||||
(52 rows)
|
(52 rows)
|
||||||
|
|
||||||
SELECT cdb_crankshaft.cdb_random_seeds(1234);
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
cdb_random_seeds
|
_cdb_random_seeds
|
||||||
------------------
|
-------------------
|
||||||
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
-- Moral functions perform some nondeterministic computations
|
-- Moral 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
|
||||||
SELECT cdb_crankshaft.cdb_random_seeds(1234);
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
|
|
||||||
SELECT ppoints.code, m.quads
|
SELECT ppoints.code, m.quads
|
||||||
FROM ppoints
|
FROM ppoints
|
||||||
@ -12,7 +12,7 @@ SELECT ppoints.code, m.quads
|
|||||||
ON ppoints.cartodb_id = m.ids
|
ON ppoints.cartodb_id = m.ids
|
||||||
ORDER BY ppoints.code;
|
ORDER BY ppoints.code;
|
||||||
|
|
||||||
SELECT cdb_crankshaft.cdb_random_seeds(1234);
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
|
|
||||||
SELECT ppoints2.code, m.quads
|
SELECT ppoints2.code, m.quads
|
||||||
FROM ppoints2
|
FROM ppoints2
|
||||||
|
Loading…
Reference in New Issue
Block a user