Find the smallest enclosing N-dimensional sphere for a set of points. |
||
Syntax |
center, radius, support = MinHyperSphere(points, direction) |
|
Arguments |
Name |
Description |
points |
A matrix of coordinate points to be enclosed. |
|
direction (optional) |
The direction in which points are stored, either |
|
Output |
Name |
Description |
center |
The center of the minimum sphere. |
|
radius |
The radius of the minimum sphere. |
|
support |
The set of original points that constrain the minimum sphere. |
|
Example 1 |
Find the smallest enclosing circle for the points |
|
SyntaxpointSet = [9, 8; -2, 10; 6, 1; -3, 5] center, radius, support = MinHyperSphere(pointSet) |
||
Resultcenter = 3.02 6.42 radius = 6.1852 support = [6, 1; 9, 8; -3, 5] |
||
Comments |
The points in the support set will not typically occur in the same order that they are found in the input matrix. |