Start » Filter Reference » Geometry 2D » Geometry 2D Features » VectorsMedian
Module: | FoundationLite |
---|
Computes the geometric median of the input vectors.
Name | Type | Range | Description | |
---|---|---|---|---|
inVectors | Vector2DArray | Input vectors | ||
inWeights | RealArray* | Optional input weights | ||
inMaxIterationCount | Integer | 1 - | Maximum number of iterations | |
outGeometricMedian | Vector2D | Geometric median | ||
outDistanceSum | Real | Sum of distances from input vectors to geometric median | ||
diagApproximationSteps | Vector2DArray | 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 VectorsMedian. |
DomainError | Input vector array is empty in VectorsMedian. |
Complexity Level
This filter is available on Advanced Complexity Level.