All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::st::IDWInterpolator Class Reference

A class that implements an inverse distance weighted (IDW) interpolationan function for PointCoverage. More...

#include <IDWInterpolator.h>

Inheritance diagram for te::st::IDWInterpolator:
te::st::AbstractPointCoverageInterp te::common::Singleton< IDWInterpolator >

Public Member Functions

std::auto_ptr
< te::dt::AbstractData
estimate (const PointCoverage &cv, unsigned int p, const te::gm::Point &l)
 It estimates a value at a given non-observed location, in a PointCoverage. More...
 
te::common::AbstractParametersgetParams ()
 It gets the parameters associated to the interpolator. More...
 
void setParams (te::common::AbstractParameters *p)
 It sets the parameters associated to the interpolator. More...
 
virtual ~IDWInterpolator ()
 Virtual destructor. More...
 

Static Public Member Functions

static IDWInterpolatorgetInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 IDWInterpolator ()
 Constructor. More...
 

Friends

class te::common::Singleton< IDWInterpolator >
 

Detailed Description

A class that implements an inverse distance weighted (IDW) interpolationan function for PointCoverage.

See also
AbstractPointCoverageInterp PointCoverage

Definition at line 49 of file IDWInterpolator.h.

Constructor & Destructor Documentation

te::st::IDWInterpolator::~IDWInterpolator ( )
virtual

Virtual destructor.

Definition at line 40 of file IDWInterpolator.cpp.

te::st::IDWInterpolator::IDWInterpolator ( )
protected

Constructor.

Definition at line 36 of file IDWInterpolator.cpp.

Member Function Documentation

std::auto_ptr< te::dt::AbstractData > te::st::IDWInterpolator::estimate ( const PointCoverage cv,
unsigned int  p,
const te::gm::Point l 
)
virtual

It estimates a value at a given non-observed location, in a PointCoverage.

Parameters
cvA PointCoverage
pThe index of the PointCoverage property to be estimated
lA given non-observed location.
Returns
The estimated value.
Note
The caller will take the ownership of the output Geometry pointer.

Implements te::st::AbstractPointCoverageInterp.

Definition at line 44 of file IDWInterpolator.cpp.

References te::st::PointCoverage::begin(), te::gm::Geometry::distance(), te::st::PointCoverage::end(), te::st::PointCoverageIterator::getDouble(), and te::st::PointCoverageIterator::getLocation().

static IDWInterpolator & te::common::Singleton< IDWInterpolator >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.
te::common::AbstractParameters* te::st::IDWInterpolator::getParams ( )
inlinevirtual

It gets the parameters associated to the interpolator.

Returns
It returns the parameters associated to the interpolator.
Note
The caller will not take the ownership of the returned pointer.

Implements te::st::AbstractPointCoverageInterp.

Definition at line 55 of file IDWInterpolator.h.

void te::st::IDWInterpolator::setParams ( te::common::AbstractParameters p)
inlinevirtual

It sets the parameters associated to the interpolator.

Parameters
pThe parameters to be associated to the interpolator.
Note
It will take the ownership of the given pointer.

Implements te::st::AbstractPointCoverageInterp.

Definition at line 57 of file IDWInterpolator.h.

Friends And Related Function Documentation

friend class te::common::Singleton< IDWInterpolator >
friend

Definition at line 51 of file IDWInterpolator.h.


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