Compute the radius of the minimal enclosing ball between Points given by a range of coordinates. The points are assumed to have the same dimension.
More...
|
template<typename Point > |
std::iterator_traits< typename boost::range_iterator< Point >::type >::value_type | operator() (const Point &point_1, const Point &point_2) const |
| Minimal_enclosing_ball_radius from two points. More...
|
|
template<typename Point_cloud , typename Point_iterator = typename boost::range_const_iterator<Point_cloud>::type, typename Point = typename std::iterator_traits<Point_iterator>::value_type, typename Coordinate_iterator = typename boost::range_const_iterator<Point>::type, typename Coordinate = typename std::iterator_traits<Coordinate_iterator>::value_type> |
Coordinate | operator() (const Point_cloud &point_cloud) const |
| Minimal_enclosing_ball_radius from a point cloud. More...
|
|
Compute the radius of the minimal enclosing ball between Points given by a range of coordinates. The points are assumed to have the same dimension.
◆ operator()() [1/2]
template<typename Point >
std::iterator_traits<typename boost::range_iterator<Point>::type>::value_type Gudhi::Minimal_enclosing_ball_radius::operator() |
( |
const Point & |
point_1, |
|
|
const Point & |
point_2 |
|
) |
| const |
|
inline |
Minimal_enclosing_ball_radius from two points.
- Parameters
-
[in] | point_1 | First point. |
[in] | point_2 | second point. |
- Returns
- The minimal enclosing ball radius for the two points (aka. Euclidean distance / 2.).
- Template Parameters
-
Point | must be a range of Cartesian coordinates. |
◆ operator()() [2/2]
template<typename Point_cloud , typename Point_iterator = typename boost::range_const_iterator<Point_cloud>::type, typename Point = typename std::iterator_traits<Point_iterator>::value_type, typename Coordinate_iterator = typename boost::range_const_iterator<Point>::type, typename Coordinate = typename std::iterator_traits<Coordinate_iterator>::value_type>
Coordinate Gudhi::Minimal_enclosing_ball_radius::operator() |
( |
const Point_cloud & |
point_cloud | ) |
const |
|
inline |
Minimal_enclosing_ball_radius from a point cloud.
- Parameters
-
[in] | point_cloud | The points. |
- Returns
- The minimal enclosing ball radius for the points.
- Template Parameters
-
Point_cloud | must be a range of points with Cartesian coordinates. Point_cloud is a range over a range of Coordinate. |
The documentation for this class was generated from the following file: