Comments (10)
retested. Seems like yesterday we fucked up the data or something. You guys win
from camshaft.
Looking in to it now thanks for the heads up @saleiva
from camshaft.
with that amount of points and randomly distributed '2' and '1' I think is correct. Test it with two points table
from camshaft.
but the centers are exactly the same, that's very weird, don't you think?
from camshaft.
Try it with something like:
with points as (
select (s * s) as weight, st_makepoint(s,s) as the_geom from generate_series(1,2) s
)
--select st_astext(the_geom), weight
select st_astext(cdb_crankshaft.CDB_WeightedMean(the_geom, weight)) as the_geom
from points
And play with the weight
value from the CTE.
IMO it's working OK.
from camshaft.
@saleiva visually can be misleading (since there is snapping), did you test it matematically?
from camshaft.
lat/long values where the same at a quick sight
2016-06-23 12:16 GMT+02:00 javi santana [email protected]:
@saleiva https://github.com/saleiva visually can be misleading (since
there is snapping), did you test it matematically?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#79 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAIENWBrXbKYujXSQxciBE9WGRCF0UKaks5qOlzggaJpZM4I8Kgf
.
Sergio Alvarez Leiva
from camshaft.
@saleiva When I try it they look different . Not by much but different
from camshaft.
With some more tests it seams to be working . 4 points 3 on the right 1 on the left with various weightings does what you would expect it to do.
I think one of the reasons your not seeing a big effect in the crimes data is the weights are essentially randomly assigned so they will tend to cancel out. If you give crimes where there was an arrest weight 200 and crimes where there wasn't a weight of 1 then the map looks like this:
Where the blue points are the unweighted centroids and the orange points are the weighted centroids.
So I think its working ok
from camshaft.
FAV
from camshaft.
Related Issues (20)
- DO: Error augmenting with text columns HOT 1
- Allow executing arbitrary SQL for analysis preparation HOT 7
- Performance research: run independent analyses in parallel HOT 1
- Prevent column name collisions in node queries HOT 2
- Depricated SQL nodes not working HOT 18
- Review sql queries to improve planning with IMMUTABLE and PARALLEL functions HOT 6
- Invalid geometries generated with Area of Intereset HOT 1
- DO analysis fails with multiple columns with the same numerator HOT 2
- Poor SQL for nearest neighbor join
- Force "merge" analysis to be cached HOT 2
- Map instantiation: Get columns from cache table instead of using `LIMIT 0` when avaiblable HOT 9
- Add .npmignore HOT 1
- IMHO Misleading `limits_error` message
- Uncaught exception in some Batch API errors HOT 1
- Polygons from geometries analysis should be cached HOT 1
- Uncaught exception: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed HOT 17
- Error with reserved words
- Replace CDB_QueryTables_Updated_At with cartodb-query-tables HOT 1
- Noise in the analysis logs HOT 4
- Uncaught exception: Range filter expect to have at least one value in greater_than, greater_than_or_equal, less_than, less_than_or_equal, min, or max numeric params
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camshaft.