PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ test_weighted_distance()

static double test_weighted_distance ( const POINT4D curr,
const POINT4D points,
uint32_t  npoints 
)
static

Definition at line 1394 of file cu_algorithm.c.

1395{
1396 double distance = 0.0;
1397 uint32_t i;
1398 for (i = 0; i < npoints; i++)
1399 {
1400 distance += distance3d_pt_pt((POINT3D*)curr, (POINT3D*)&points[i]) * points[i].m;
1401 }
1402
1403 return distance;
1404}
double distance3d_pt_pt(const POINT3D *p1, const POINT3D *p2)
static double distance(double x1, double y1, double x2, double y2)
Definition lwtree.c:1032
double m
Definition liblwgeom.h:414

References distance(), distance3d_pt_pt(), and POINT4D::m.

Referenced by do_median_test().

Here is the call graph for this function:
Here is the caller graph for this function: