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
BiCubicInterpolation2D Class Reference

BiCubic 2d interpolation. More...

#include <interpolation.hpp>

Inheritance diagram for BiCubicInterpolation2D:
Interpolation2D

Public Member Functions

 BiCubicInterpolation2D (size_t n, size_t m, const std::vector< double > &f)
 Constructor. More...
 
virtual ~BiCubicInterpolation2D ()
 Destructor. More...
 
virtual double operator() (double x, double y) const
 Operator for getting interpolation at (x,y). More...
 
- Public Member Functions inherited from Interpolation2D
virtual ~Interpolation2D ()
 Virtual destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Interpolation2D
 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 inherited from Interpolation2D
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

BiCubic 2d interpolation.

Calculates the derivatives of the function at mesh points using central finite differences. Zero derivatives are assumed at boundaries.

Constructor & Destructor Documentation

◆ BiCubicInterpolation2D()

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

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.

◆ ~BiCubicInterpolation2D()

virtual BiCubicInterpolation2D::~BiCubicInterpolation2D ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ operator()()

double BiCubicInterpolation2D::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 files:


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