GammaLib
2.0.0
|
Bilinear interpolator class. More...
#include <GBilinear.hpp>
Public Member Functions | |
GBilinear (void) | |
Void constructor. More... | |
GBilinear (const GBilinear &interpolator) | |
Copy constructor. More... | |
virtual | ~GBilinear (void) |
Destructor. More... | |
GBilinear & | operator= (const GBilinear &interpolator) |
Assignment operator. More... | |
double | operator() (const double *array) |
Interpolator. More... | |
void | clear (void) |
Clear node array. More... | |
GBilinear * | clone (void) const |
Clone bilinear interolator. More... | |
std::string | classname (void) const |
Return class name. More... | |
int & | index1 (void) |
Access index 1. More... | |
int & | index2 (void) |
Access index 2. More... | |
int & | index3 (void) |
Access index 3. More... | |
int & | index4 (void) |
Access index 4. More... | |
double & | weight1 (void) |
Access weight 1. More... | |
double & | weight2 (void) |
Access weight 2. More... | |
double & | weight3 (void) |
Access weight 3. More... | |
double & | weight4 (void) |
Access weight 4. More... | |
std::string | print (const GChatter &chatter=NORMAL) const |
Print nodes. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Private Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GBilinear &interpolator) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Private Attributes | |
int | m_inx1 |
int | m_inx2 |
int | m_inx3 |
int | m_inx4 |
double | m_wgt1 |
double | m_wgt2 |
double | m_wgt3 |
double | m_wgt4 |
Bilinear interpolator class.
Definition at line 40 of file GBilinear.hpp.
GBilinear::GBilinear | ( | void | ) |
Void constructor.
Definition at line 54 of file GBilinear.cpp.
References init_members().
Referenced by clone().
GBilinear::GBilinear | ( | const GBilinear & | interpolator | ) |
Copy constructor.
[in] | interpolator | Bilinear interpolator. |
Definition at line 69 of file GBilinear.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GBase.
Definition at line 90 of file GBilinear.hpp.
|
virtual |
Clear node array.
Implements GBase.
Definition at line 156 of file GBilinear.cpp.
References free_members(), and init_members().
Referenced by GSkyMap::extract(), and GSkyMap::init_members().
|
virtual |
Clone bilinear interolator.
Implements GBase.
Definition at line 174 of file GBilinear.cpp.
References GBilinear().
|
private |
Copy class members.
[in] | interpolator | Bilinear interpolator. |
Definition at line 249 of file GBilinear.cpp.
References m_inx1, m_inx2, m_inx3, m_inx4, m_wgt1, m_wgt2, m_wgt3, and m_wgt4.
Referenced by GBilinear(), and operator=().
|
private |
Delete class members.
Definition at line 269 of file GBilinear.cpp.
Referenced by clear(), operator=(), and ~GBilinear().
|
inline |
Access index 1.
Definition at line 102 of file GBilinear.hpp.
References m_inx1.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access index 2.
Definition at line 114 of file GBilinear.hpp.
References m_inx2.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access index 3.
Definition at line 126 of file GBilinear.hpp.
References m_inx3.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access index 4.
Definition at line 138 of file GBilinear.hpp.
References m_inx4.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
private |
Initialise class members.
Definition at line 227 of file GBilinear.cpp.
References m_inx1, m_inx2, m_inx3, m_inx4, m_wgt1, m_wgt2, m_wgt3, and m_wgt4.
Referenced by clear(), GBilinear(), and operator=().
double GBilinear::operator() | ( | const double * | array | ) |
Assignment operator.
[in] | interpolator | Bilinear interpolator. |
Definition at line 107 of file GBilinear.cpp.
References copy_members(), free_members(), and init_members().
Print nodes.
[in] | chatter | Chattiness (defaults to NORMAL). |
Implements GBase.
Definition at line 186 of file GBilinear.cpp.
References m_inx1, m_inx2, m_inx3, m_inx4, m_wgt1, m_wgt2, m_wgt3, m_wgt4, gammalib::parformat(), SILENT, and gammalib::str().
|
inline |
Access weight 1.
Definition at line 150 of file GBilinear.hpp.
References m_wgt1.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access weight 2.
Definition at line 162 of file GBilinear.hpp.
References m_wgt2.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access weight 3.
Definition at line 174 of file GBilinear.hpp.
References m_wgt3.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
inline |
Access weight 4.
Definition at line 186 of file GBilinear.hpp.
References m_wgt4.
Referenced by GHealpix::interpolator(), and GSkyMap::operator()().
|
private |
Definition at line 73 of file GBilinear.hpp.
Referenced by copy_members(), index1(), init_members(), operator()(), and print().
|
private |
Definition at line 74 of file GBilinear.hpp.
Referenced by copy_members(), index2(), init_members(), operator()(), and print().
|
private |
Definition at line 75 of file GBilinear.hpp.
Referenced by copy_members(), index3(), init_members(), operator()(), and print().
|
private |
Definition at line 76 of file GBilinear.hpp.
Referenced by copy_members(), index4(), init_members(), operator()(), and print().
|
private |
Definition at line 77 of file GBilinear.hpp.
Referenced by copy_members(), init_members(), operator()(), print(), and weight1().
|
private |
Definition at line 78 of file GBilinear.hpp.
Referenced by copy_members(), init_members(), operator()(), print(), and weight2().
|
private |
Definition at line 79 of file GBilinear.hpp.
Referenced by copy_members(), init_members(), operator()(), print(), and weight3().
|
private |
Definition at line 80 of file GBilinear.hpp.
Referenced by copy_members(), init_members(), operator()(), print(), and weight4().