![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Computes the Tesselation Density Estimator (TDE) of a set of points. More...
#include <TDE.hh>
Public Member Functions | |
| TDE () | |
| Default constructor, initilizes everything to 0. More... | |
| TDE (std::vector< std::vector< double >> points, const bool interp=true, const bool bounded=true, const double alpha=0., const double eps=1e-6) | |
| Cloud constructor, sets the vector of points. More... | |
| TDE (const TDE &tde) | |
| Copy constructor. More... | |
| TDE & | operator= (const TDE &tde) |
| Equality operator. More... | |
| double | operator() (const std::vector< double > &v) const |
| Overloaded function operator, calls Evaluate. More... | |
| double | operator() (const double &v) const |
| Overloaded function operator, calls Evaluate. More... | |
| double | operator() (const double *v) const |
| Overloaded function operator, calls Evaluate. More... | |
| ~TDE () | |
| Destructor. More... | |
| double | Evaluate (const std::vector< double > &v) const |
| Performs the density estimation at an n-point v. More... | |
| double | Evaluate (const double &v) const |
| Performs the density estimation at an n-point v. More... | |
| double | Evaluate (const double *v) const |
| Performs the density estimation at an n-point v. More... | |
| void | Initialize () |
| Initializes the interpolator if requested. 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 > & | GetVertex (const size_t i) const |
| Returns a specific vertex. More... | |
| const std::vector< Hull > & | GetCellArray () const |
| Returns the array of cells corresponding to the array of points. More... | |
| const Hull & | GetCell (const size_t i) const |
| Returns a specific cell. More... | |
| const size_t & | GetDimension () const |
| Returns the dimension of the tesselated space. More... | |
| const bool & | IsBounded () const |
| Returns true if box points have been added. More... | |
| TPolyLine * | BoundingBox () const |
| Returns a rectangle to be drawn in ROOT (only 2D) More... | |
| std::vector< TPolyLine * > | Polygons () const |
| Returns an array of polygons to be drawn in ROOT (only 2D) More... | |
| TH2Poly * | DensityProfile () const |
| Returns a histogram where each bin is a cell and its content is its density. More... | |
| void | Draw (std::string name="", bool color=true, bool points=false, bool axes=false) const |
| Draws the underlying Voronoi tesselation on a canvas. More... | |
| std::vector< TPolyLine * > | Meshing () const |
| Returns the meshing, used to build the interpolation, as polygons. More... | |
Private Attributes | |
| Voronoi | _vor |
| Voronoi tesselation of the space. More... | |
| Interpolator | _int |
| Simplexial interpolator. More... | |
| std::vector< double > | _weights |
| Weights of each of the point, if repetition. More... | |
| bool | _interp |
| Apply simplexial interpolation if true. More... | |
Computes the Tesselation Density Estimator (TDE) of a set of points.
The TDE uses the inverse of the volume of each surrounding Voronoi cell as an estimator for density. The estimator supports simplex interpolation, CVT and PCVT (as defined in the Voronoi class).
| TDE::TDE | ( | ) |
Default constructor, initilizes everything to 0.
| TDE::TDE | ( | std::vector< std::vector< double >> | points, |
| const bool | interp = true, |
||
| const bool | bounded = true, |
||
| const double | alpha = 0., |
||
| const double | eps = 1e-6 |
||
| ) |
Cloud constructor, sets the vector of points.
| points | N points in a _dim dimensional space |
| interp | Interpolates between the vertices if requested |
| bounded | Add 2^_dim box vertices to contain the tessellation if requested |
| alpha | Penalised Centroidal TDE Tessellation parameter |
| eps | Precision required for the pure CVT (alpha = 1.) |
| TDE::TDE | ( | const TDE & | tde | ) |
Copy constructor.
| TDE::~TDE | ( | ) |
Destructor.
|
inline |
Returns a rectangle to be drawn in ROOT (only 2D)
|
inline |
Returns a histogram where each bin is a cell and its content is its density.
|
inline |
Draws the underlying Voronoi tesselation on a canvas.
| name | Will print the canvas as "VT_name.pdf" |
| color | Implements a color scale inverse proportional to the cell volume |
| points | Draws the points on which the tesselation is constructed |
| axes | Draws axes |
| double TDE::Evaluate | ( | const std::vector< double > & | v | ) | const |
Performs the density estimation at an n-point v.
| v | Vector of coordinates of the n-point |
| double TDE::Evaluate | ( | const double & | v | ) | const |
Performs the density estimation at an n-point v.
| v | One dimensional value of the point |
| double TDE::Evaluate | ( | const double * | v | ) | const |
Performs the density estimation at an n-point v.
| v | Pointer to an array of coordinates of the n-point |
|
inline |
Returns a specific cell.
|
inline |
Returns the array of cells corresponding to the array of points.
|
inline |
Returns the dimension of the tesselated space.
|
inline |
Returns the array of points on which the triangulation is constructed.
|
inline |
Returns a specific vertex.
| void TDE::Initialize | ( | ) |
Initializes the interpolator if requested.
|
inline |
Returns true if box points have been added.
| std::vector< TPolyLine * > TDE::Meshing | ( | ) | const |
Returns the meshing, used to build the interpolation, as polygons.
|
inline |
Overloaded function operator, calls Evaluate.
| v | Vector of coordinates |
|
inline |
Overloaded function operator, calls Evaluate.
| v | One dimensional value |
|
inline |
Overloaded function operator, calls Evaluate.
| v | Pointer to an array of coordinates |
|
inline |
Returns an array of polygons to be drawn in ROOT (only 2D)
|
private |
Simplexial interpolator.
|
private |
Apply simplexial interpolation if true.
|
private |
Weights of each of the point, if repetition.
1.8.6