Navigation

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


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

Base class for 2d interpolation. More...

#include <interpolation.hpp>

Inheritance diagram for Interpolation2D:
BiCubicInterpolation2D BiLinearInterpolation2D ClosestInterpolation2D

Public Member Functions

virtual ~Interpolation2D ()
 Virtual destructor. More...
 
virtual double operator() (double x, double y) const =0
 Operator for getting interpolation at (x,y). More...
 

Protected Member Functions

 Interpolation2D (size_t n, size_t m, const std::vector< double > &f)
 Constructor. More...
 
const double & __f (int i, int j) const
 
double & __f (int i, int j)
 

Protected Attributes

size_t _n
 Size of first coordinate of mesh. More...
 
size_t _m
 Size of second coordinate of mesh. More...
 
std::vector< double > _f
 Function data mesh. More...
 

Detailed Description

Base class for 2d interpolation.

Provides an interpolation of a function defined at mesh points (x,y), where 0 <= (x,y) <= 1.

Constructor & Destructor Documentation

◆ Interpolation2D()

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

Constructor.

Makes an independent object for interpolation of data. An internal copy of f is created. Data mesh is assumed to be accessed with indexing i+j*n.

◆ ~Interpolation2D()

virtual Interpolation2D::~Interpolation2D ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ operator()()

virtual double Interpolation2D::operator() ( double  x,
double  y 
) const
pure 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.

Implemented in BiCubicInterpolation2D, BiLinearInterpolation2D, and ClosestInterpolation2D.

Member Data Documentation

◆ _f

std::vector<double> Interpolation2D::_f
protected

Function data mesh.

◆ _m

size_t Interpolation2D::_m
protected

Size of second coordinate of mesh.

◆ _n

size_t Interpolation2D::_n
protected

Size of first coordinate of mesh.


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


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.