<div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">Cluster functions don't have cross-PostGIS-version stability guarantee. For many production applications that is equal to being non-deterministic.</div><div dir="auto"><br></div><div dir="auto">While debugging KMeans I believe I've seen blinking tests on different compiler flags as some optimizations may mean your distance computation will get different last bits and that may affect clustering, especially on grids. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 22 сту 2021, 18:00 карыстальнік Giuseppe Broccolo <<a href="mailto:g.broccolo.7@gmail.com">g.broccolo.7@gmail.com</a>> напісаў:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>I have a question about how the function <span>ST_ClusterDBSCAN is implemented in PostGIS: basically, the question is if I'm able to pass the same window of geometries in input to the function, would it return the same clusters?<br><br></span></div><div><span>I tried to find an answer by myself having a look to the code: <a href="https://github.com/postgis/postgis/blob/962ef92215fdac72b317d7d99201931394174afa/postgis/lwgeom_window.c#L8" target="_blank" rel="noreferrer">see link here</a><br></span></div><div><br></div><div>What I understood is that the geometries in the window are accessed exactly as they are stored in memory. The geometries are then processed sequentially in order to create the clusters.<br><br></div><div>Is there a way to create a window in a way that passing exactly the same geometries in the window I can obtain exactly the same clusters (i.e. sorting the window partition with an ORDER BY or any similar trick)?<br><br></div><div>Thank you very much,<br></div><div>Giuseppe.<br></div><div><span></span></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>