Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.4
   Version 1.0.4dev
      Class Index
      File List
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

ClosestInterpolation2D Class Reference

Closest point 2d interpolation. More...

#include <interpolation.hpp>

Inheritance diagram for ClosestInterpolation2D:
Interpolation2D

List of all members.

Public Member Functions

 ClosestInterpolation2D (size_t n, size_t m, const std::vector< double > &f)
 Constructor.
virtual ~ClosestInterpolation2D ()
 Destructor.
virtual double operator() (double x, double y) const
 Operator for getting interpolation at (x,y).

Detailed Description

Closest point 2d interpolation.

Not really an interpolation. Just returns the closest point of original data.


Constructor & Destructor Documentation

ClosestInterpolation2D::ClosestInterpolation2D ( size_t  n,
size_t  m,
const std::vector< double > &  f 
)

Constructor.

virtual ClosestInterpolation2D::~ClosestInterpolation2D (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual double ClosestInterpolation2D::operator() ( double  x,
double  y 
) const [virtual]

Operator for getting interpolation at (x,y).

Returns an interpolated value of the function at (x,y), where 0 <= (x,y) <= 1. Returns NaN outside this area.

Implements Interpolation2D.


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


Reference manual for Ion Beam Simulator 1.0.4dev
Generated by Doxygen 1.7.1 on Wed May 18 2011 23:03:50.