![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Computes the Penalised Bootstrap Aggregate Tesselation Density Estimator (PBATDE) of a set of points. More...
#include <PBATDE.hh>
Public Member Functions | |
| PBATDE () | |
| Default constructor, initilizes everything to 0. More... | |
| PBATDE (const std::vector< std::vector< double >> &points, const bool interp=false, const size_t J=100) | |
| Cloud constructor, sets the vector of points. More... | |
| PBATDE (const PBATDE &pbatde) | |
| Copy constructor. More... | |
| PBATDE & | operator= (const PBATDE &pbatde) |
| 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... | |
| ~PBATDE () | |
| Destructor. More... | |
| void | Initialize () |
| Initialize the PBATDE in the N points. 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... | |
| 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... | |
| const size_t & | GetDimension () const |
| Returns the dimension of the tesselated space. More... | |
Private Attributes | |
| size_t | _dim |
| Dimension of the space the estimator lives in. More... | |
| size_t | _M |
| Number of subsamples to produce. More... | |
| size_t | _J |
| Number of points in each subsample. More... | |
| std::vector< std::vector < double > > | _points |
| Array of input points. More... | |
| std::vector< TDE > | _tdes |
| Array of bootstrapped TDEs. More... | |
| bool | _interp |
| Apply simplexial interpolation if true. More... | |
Computes the Penalised Bootstrap Aggregate Tesselation Density Estimator (PBATDE) of a set of points.
It is a density estimation method that divides the input sample of point in a certain amount of subsamples (aggregates), applies TDE to each one of them, then bootstraps the estimations into one, the mean estimate. The best number of subsamples is achieved when the AIC of BIC is minimized (information criterion).
| PBATDE::PBATDE | ( | ) |
Default constructor, initilizes everything to 0.
| PBATDE::PBATDE | ( | const std::vector< std::vector< double >> & | points, |
| const bool | interp = false, |
||
| const size_t | J = 100 |
||
| ) |
Cloud constructor, sets the vector of points.
| points | N points in a _dim dimensional space |
| interp | Interpolates between the vertices if requested |
| J | Number of points in each subsample |
| PBATDE::PBATDE | ( | const PBATDE & | pbatde | ) |
Copy constructor.
| PBATDE::~PBATDE | ( | ) |
Destructor.
| double PBATDE::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 PBATDE::Evaluate | ( | const double & | v | ) | const |
Performs the density estimation at an n-point v.
| v | One dimensional value of the point |
| double PBATDE::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 the dimension of the tesselated space.
|
inline |
Returns a specific point.
|
inline |
Returns the array of points on which the triangulation is constructed.
| void PBATDE::Initialize | ( | ) |
Initialize the PBATDE in the N points.
|
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 |
|
private |
Dimension of the space the estimator lives in.
|
private |
Apply simplexial interpolation if true.
|
private |
Number of points in each subsample.
|
private |
Number of subsamples to produce.
|
private |
Array of input points.
|
private |
Array of bootstrapped TDEs.
1.8.6