Gudhi::Minimal_enclosing_ball_radius Class Reference

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...

Public Member Functions

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...
 

Detailed Description

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.

Member Function Documentation

◆ 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_1First point.
[in]point_2second point.
Returns
The minimal enclosing ball radius for the two points (aka. Euclidean distance / 2.).
Template Parameters
Pointmust 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_cloudThe points.
Returns
The minimal enclosing ball radius for the points.
Template Parameters
Point_cloudmust 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:
GUDHI  Version 3.1.1  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Fri Feb 7 2020 16:35:36 for GUDHI by Doxygen 1.8.13