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...
#include </home/gailuron/workspace/gudhi/gudhi-devel/build/gudhi.3.5.0/include/gudhi/distance_functions.h>
|
template<typename Point > |
std::iterator_traits< typenameboost::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.
- Examples
- cech_complex_step_by_step.cpp.
◆ operator()() [1/2]
template<typename Point >
std::iterator_traits< typenameboost::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: