Package micycle.pgs.commons
Class GeometricMedian
java.lang.Object
micycle.pgs.commons.GeometricMedian
Computes 2D/3D weighted geometric median.
- Author:
- Michael Carleton
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.vecmath.Point3d
median
(javax.vecmath.Point4d[] points, double tol, int max_iter) Computes the median point of the input point set.
-
Method Details
-
median
public static javax.vecmath.Point3d median(javax.vecmath.Point4d[] points, double tol, int max_iter) Computes the median point of the input point set.- Parameters:
points
- array of x,y,z,w where w is the weight; weights must be non-negativetol
- tolerancemax_iter
- max iterations- Returns:
- median point of input
-