Start » Filter Reference » Geometry 2D » Geometry 2D Features » PointsMedian
Module: | FoundationLite |
---|
Computes the geometric median of the input points.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inPoints | Point2DArray | Input points | |
![]() |
inWeights | RealArray* | Optional input weights | |
![]() |
inMaxIterationCount | Integer | 1 - ![]() |
Maximum number of iterations |
![]() |
outGeometricMedian | Point2D | Geometric median | |
![]() |
outDistanceSum | Real | Sum of distances from input points to geometric median | |
![]() |
diagApproximationSteps | Point2DArray | Approximate geometric medians calculated during subsequent iterations |
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input arrays must be of the same size in PointsMedian. |
DomainError | Input point array is empty in PointsMedian. |
Complexity Level
This filter is available on Basic Complexity Level.