SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
PBATDE Class Reference

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

Detailed Description

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

Constructor & Destructor Documentation

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.

Parameters
pointsN points in a _dim dimensional space
interpInterpolates between the vertices if requested
JNumber of points in each subsample
PBATDE::PBATDE ( const PBATDE &  pbatde)

Copy constructor.

PBATDE::~PBATDE ( )

Destructor.

Member Function Documentation

double PBATDE::Evaluate ( const std::vector< double > &  v) const

Performs the density estimation at an n-point v.

Parameters
vVector of coordinates of the n-point
double PBATDE::Evaluate ( const double &  v) const

Performs the density estimation at an n-point v.

Parameters
vOne dimensional value of the point
double PBATDE::Evaluate ( const double *  v) const

Performs the density estimation at an n-point v.

Parameters
vPointer to an array of coordinates of the n-point
const size_t& PBATDE::GetDimension ( ) const
inline

Returns the dimension of the tesselated space.

const std::vector<double>& PBATDE::GetPoint ( const size_t  i) const
inline

Returns a specific point.

const std::vector<std::vector<double> >& PBATDE::GetPointArray ( ) const
inline

Returns the array of points on which the triangulation is constructed.

void PBATDE::Initialize ( )

Initialize the PBATDE in the N points.

double PBATDE::operator() ( const std::vector< double > &  v) const
inline

Overloaded function operator, calls Evaluate.

Parameters
vVector of coordinates
double PBATDE::operator() ( const double &  v) const
inline

Overloaded function operator, calls Evaluate.

Parameters
vOne dimensional value
double PBATDE::operator() ( const double *  v) const
inline

Overloaded function operator, calls Evaluate.

Parameters
vPointer to an array of coordinates
PBATDE & PBATDE::operator= ( const PBATDE &  pbatde)

Equality operator.

Field Documentation

size_t PBATDE::_dim
private

Dimension of the space the estimator lives in.

bool PBATDE::_interp
private

Apply simplexial interpolation if true.

size_t PBATDE::_J
private

Number of points in each subsample.

size_t PBATDE::_M
private

Number of subsamples to produce.

std::vector<std::vector<double> > PBATDE::_points
private

Array of input points.

std::vector<TDE> PBATDE::_tdes
private

Array of bootstrapped TDEs.


The documentation for this class was generated from the following files: