![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Data stucture of a convex hull. More...
#include <Hull.hh>
Public Member Functions | |
| Hull () | |
| Default constructor, initilizes everything to 0. More... | |
| Hull (const std::vector< std::vector< double >> &points) | |
| Normal constructor, sets the vector of points. More... | |
| Hull (const std::vector< double > &points, const size_t &dim) | |
| Normal constructor, sets the vector of points. More... | |
| Hull (const Hull &hull) | |
| Copy constructor. More... | |
| Hull & | operator= (const Hull &hull) |
| Equality operator. More... | |
| ~Hull () | |
| Destructor. More... | |
| void | Initialize (const std::vector< std::vector< double >> &points) |
| Find the Hull triangulation of the N points. More... | |
| void | SetPointArray (const std::vector< std::vector< double >> &points) |
| Sets the array of points on the hull. More... | |
| void | SetPointArray (const std::vector< double > &points, const size_t &dim) |
| Sets the array of points on the hull. More... | |
| void | AddPoint (const std::vector< double > &point) |
| Sets the array of points on the hull. More... | |
| const std::vector< std::vector < double > > & | GetPointArray () const |
| Returns the array of points on which the triangulation is constructed. More... | |
| const std::vector< double > & | GetPoint (const size_t i) const |
| Returns a specific point. More... | |
| void | SetVolume (const double &vol) |
| Sets the volume of the hull. More... | |
| const double & | GetVolume () const |
| Returns the volume of the hull. More... | |
| Matrix< double > | GetCWPoints () const |
| Returns the points ordered clockwise with respect to the CMF. More... | |
| TPolyLine * | Polygon () const |
| Returns a polygon of the hull to be drawn in ROOT (only 2D) More... | |
Private Attributes | |
| size_t | _dim |
| Dimension of the space. More... | |
| std::vector< std::vector < double > > | _points |
| N points on the hull. More... | |
| double | _vol |
| Volume of the convex hull. More... | |
Data stucture of a convex hull.
The object orgQhull::Qhull cannot be copied and hence makes it hard to memory handle. This class stores the basic parameters computed by Qhull to be restituted on command.
Qhull performs the heavy lifting, this is a data stucture class.
| Hull::Hull | ( | ) |
Default constructor, initilizes everything to 0.
| Hull::Hull | ( | const std::vector< std::vector< double >> & | points | ) |
Normal constructor, sets the vector of points.
| points | Vector of points |
| Hull::Hull | ( | const std::vector< double > & | points, |
| const size_t & | dim | ||
| ) |
Normal constructor, sets the vector of points.
| points | Vector of points in line |
| dim | Dimension of the space |
| Hull::Hull | ( | const Hull & | hull | ) |
Copy constructor.
| Hull::~Hull | ( | ) |
Destructor.
|
inline |
Sets the array of points on the hull.
| Matrix< double > Hull::GetCWPoints | ( | ) | const |
Returns the points ordered clockwise with respect to the CMF.
|
inline |
Returns a specific point.
|
inline |
Returns the array of points on which the triangulation is constructed.
|
inline |
Returns the volume of the hull.
| void Hull::Initialize | ( | const std::vector< std::vector< double >> & | points | ) |
Find the Hull triangulation of the N points.
| TPolyLine * Hull::Polygon | ( | ) | const |
Returns a polygon of the hull to be drawn in ROOT (only 2D)
|
inline |
Sets the array of points on the hull.
| void Hull::SetPointArray | ( | const std::vector< double > & | points, |
| const size_t & | dim | ||
| ) |
Sets the array of points on the hull.
|
inline |
Sets the volume of the hull.
|
private |
Dimension of the space.
|
private |
N points on the hull.
|
private |
Volume of the convex hull.
1.8.6