PostGIS  2.3.8dev-r@@SVN_REVISION@@
lwgeom_median.c File Reference
#include <float.h>
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
Include dependency graph for lwgeom_median.c:

Go to the source code of this file.

Functions

static void calc_distances_3d (const POINT3D *curr, const POINT3D *points, uint32_t npoints, double *distances)
 
static double iterate_3d (POINT3D *curr, const POINT3D *points, uint32_t npoints, double *distances)
 
static POINT3D init_guess (const POINT3D *points, uint32_t npoints)
 
static POINT3Dlwmpoint_extract_points_3d (const LWMPOINT *g, uint32_t *ngeoms)
 
LWPOINTlwmpoint_median (const LWMPOINT *g, double tol, uint32_t max_iter, char fail_if_not_converged)
 
LWPOINTlwgeom_median (const LWGEOM *g, double tol, uint32_t max_iter, char fail_if_not_converged)