DGtal  0.9.3beta
Public Types | Public Member Functions | Private Member Functions | Private Attributes
DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor > Class Template Reference

#include <DGtal/geometry/curves/estimation/TrueLocalEstimatorOnPoints.h>

Public Types

typedef TConstIteratorOnPoints ConstIterator
 
typedef TParametricShape ParametricShape
 
typedef TParametricShape::RealPoint RealPoint
 
typedef TParametricShapeFunctor ParametricShapeFunctor
 
typedef ParametricShapeFunctor::Quantity Quantity
 

Public Member Functions

 TrueLocalEstimatorOnPoints ()
 
 ~TrueLocalEstimatorOnPoints ()
 
void init (const double h, const ConstIterator &itb, const ConstIterator &ite)
 
void attach (ParametricShape *aShapePtr)
 
Quantity eval (const ConstIterator &it) const
 
template<typename OutputIterator >
OutputIterator eval (const ConstIterator &itb, const ConstIterator &ite, OutputIterator result) const
 
bool isValid () const
 

Private Member Functions

 TrueLocalEstimatorOnPoints (const TrueLocalEstimatorOnPoints &other)
 
TrueLocalEstimatorOnPointsoperator= (const TrueLocalEstimatorOnPoints &other)
 

Private Attributes

double myH
 
ConstIterator myBegin
 
ConstIterator myEnd
 
ParametricShapeFunctormyFunctorPtr
 

Detailed Description

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
class DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >

Aim: Computes the true quantity to each element of a range associated to a parametric shape.

Description of template class 'TrueLocalEstimatorOnPoints'

Template Parameters
TConstIteratorOnPointstype of iterator on points used as query points.
TParametricShapetype of the parametric shape.
TParametricShapeFunctortype of Functor used to evaluate the quantity.

Definition at line 68 of file TrueLocalEstimatorOnPoints.h.

Member Typedef Documentation

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
typedef TConstIteratorOnPoints DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::ConstIterator

Definition at line 74 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
typedef TParametricShape DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::ParametricShape

Definition at line 76 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
typedef TParametricShapeFunctor DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::ParametricShapeFunctor

Definition at line 79 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
typedef ParametricShapeFunctor::Quantity DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::Quantity

Definition at line 80 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
typedef TParametricShape::RealPoint DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::RealPoint

Definition at line 77 of file TrueLocalEstimatorOnPoints.h.

Constructor & Destructor Documentation

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::TrueLocalEstimatorOnPoints ( )

Default constructor.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::~TrueLocalEstimatorOnPoints ( )

Destructor.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::TrueLocalEstimatorOnPoints ( const TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor > &  other)
private

Copy constructor.

Parameters
otherthe object to clone. Forbidden by default.

Member Function Documentation

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
void DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::attach ( ParametricShape aShapePtr)

Attach a shape

Parameters
aShapePtrparametric shape
template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
Quantity DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::eval ( const ConstIterator it) const

Estimation at *it

Returns
the estimated quantity at *it
template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
template<typename OutputIterator >
OutputIterator DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::eval ( const ConstIterator itb,
const ConstIterator ite,
OutputIterator  result 
) const

Estimation at each element of [itb , ite )

Parameters
itbbegin iterator
iteend iterator
resultthe output iterator to the results.
Returns
the estimated quantity from itb till ite (excluded)
template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
void DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::init ( const double  h,
const ConstIterator itb,
const ConstIterator ite 
)

Initialisation.

Parameters
hgrid size (must be >0).
itbbegin iterator
iteend iterator
template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
bool DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::isValid ( ) const

Checks the validity/consistency of the object.

Returns
'true' if the object is valid, 'false' otherwise.
template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
TrueLocalEstimatorOnPoints& DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::operator= ( const TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor > &  other)
private

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'. Forbidden by default.

Field Documentation

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
ConstIterator DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::myBegin
private

Copy of the begin iterator.

Definition at line 152 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
ConstIterator DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::myEnd
private

Copy of the end iterator.

Definition at line 155 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
ParametricShapeFunctor* DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::myFunctorPtr
private

Owning pointer on a parametric shape functor.

Definition at line 158 of file TrueLocalEstimatorOnPoints.h.

template<typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor>
double DGtal::TrueLocalEstimatorOnPoints< TConstIteratorOnPoints, TParametricShape, TParametricShapeFunctor >::myH
private

Grid size.

Definition at line 149 of file TrueLocalEstimatorOnPoints.h.


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