SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
PBATDE.hh
1 #ifndef PBATDE_HH
2 #define PBATDE_HH
3 
4 // C++ includes
5 #include <iostream>
6 #include <ctime>
7 #include <cmath>
8 #include <vector>
9 #include <map>
10 
11 // ROOT includes
12 #include "TStyle.h"
13 #include "TCanvas.h"
14 #include "TPolyLine.h"
15 #include "TH2Poly.h"
16 #include "TGraph.h"
17 #include "TCanvas.h"
18 
19 // Additional includes
20 #include "Statistics.hh"
21 #include "TDE.hh"
22 
31 class PBATDE {
32  public:
34  PBATDE();
35 
42  PBATDE(const std::vector<std::vector<double>>& points,
43  const bool interp=false,
44  const size_t J=100);
45 
47  PBATDE(const PBATDE& pbatde);
48 
50  PBATDE& operator=(const PBATDE& pbatde);
51 
56  double operator()(const std::vector<double>& v) const { return Evaluate(v); }
57 
62  double operator()(const double& v) const { return Evaluate(v); }
63 
68  double operator()(const double* v) const { return Evaluate(v); }
69 
71  ~PBATDE();
72 
74  void Initialize();
75 
80  double Evaluate(const std::vector<double>& v) const;
81 
86  double Evaluate(const double& v) const;
87 
92  double Evaluate(const double* v) const;
93 
95  const std::vector<std::vector<double>>& GetPointArray() const { return _points; }
96 
98  const std::vector<double>& GetPoint(const size_t i) const { return _points[i]; }
99 
101  const size_t& GetDimension() const { return _dim; }
102 
103  private:
104 
105  size_t _dim;
106  size_t _M;
107  size_t _J;
108  std::vector<std::vector<double>> _points;
109  std::vector<TDE> _tdes;
110  bool _interp;
111 };
112 
113 #endif
size_t _dim
Dimension of the space the estimator lives in.
Definition: PBATDE.hh:105
void Initialize()
Initialize the PBATDE in the N points.
Definition: PBATDE.cc:41
Set of functions that compose the Statistics package.
size_t _J
Number of points in each subsample.
Definition: PBATDE.hh:107
bool _interp
Apply simplexial interpolation if true.
Definition: PBATDE.hh:110
std::vector< std::vector< double > > _points
Array of input points.
Definition: PBATDE.hh:108
~PBATDE()
Destructor.
Definition: PBATDE.cc:39
size_t _M
Number of subsamples to produce.
Definition: PBATDE.hh:106
std::vector< TDE > _tdes
Array of bootstrapped TDEs.
Definition: PBATDE.hh:109
const size_t & GetDimension() const
Returns the dimension of the tesselated space.
Definition: PBATDE.hh:101
const std::vector< std::vector< double > > & GetPointArray() const
Returns the array of points on which the triangulation is constructed.
Definition: PBATDE.hh:95
double operator()(const double &v) const
Overloaded function operator, calls Evaluate.
Definition: PBATDE.hh:62
PBATDE()
Default constructor, initilizes everything to 0.
Definition: PBATDE.cc:3
const std::vector< double > & GetPoint(const size_t i) const
Returns a specific point.
Definition: PBATDE.hh:98
PBATDE & operator=(const PBATDE &pbatde)
Equality operator.
Definition: PBATDE.cc:25
double Evaluate(const std::vector< double > &v) const
Performs the density estimation at an n-point v.
Definition: PBATDE.cc:64
double operator()(const double *v) const
Overloaded function operator, calls Evaluate.
Definition: PBATDE.hh:68
Computes the Penalised Bootstrap Aggregate Tesselation Density Estimator (PBATDE) of a set of points...
Definition: PBATDE.hh:31
double operator()(const std::vector< double > &v) const
Overloaded function operator, calls Evaluate.
Definition: PBATDE.hh:56