#include <harmonic_expansion.h>
Public Types | |
typedef CHarmonicExpansion < TBas, TObj >::iterator | term_iterator |
typedef CHarmonicExpansion < TBas, TObj >::const_iterator | const_term_iterator |
Public Member Functions | |
CHarmonicExpansion (void) | |
CHarmonicExpansion (int _lmax, bool _skip, string _sd, string _fp="term") | |
virtual | ~CHarmonicExpansion (void) |
bool | Read (const parameterMap &s) |
Read from parameterMap. | |
bool | Write (parameterMap &s) |
Write to parameterMap. | |
virtual bool | writeTerms (void) |
Write terms to disk. | |
virtual bool | fillTerms (void)=0 |
Fill out the list with pre-initialized, but empty, terms. | |
bool | keepTerm (const_term_iterator it) const |
test if we should keep this term | |
double | getValueSphr (double r, double theta, double phi) const |
get value at specific location, in spherical coordinates | |
double | getErrorSphr (double r, double theta, double phi) const |
get uncertainty on value at specific location, in spherical coordinates | |
double | getValueCart (double rS, double rO, double rL) const |
get value at specific location, in Cartesian coordinates | |
double | getErrorCart (double rS, double rO, double rL) const |
get uncertainty on value at specific location, in Cartesian coordinates | |
Public Attributes | |
string | storage_directory |
string | file_prefix |
int | lmax |
bool | skip_odd_l |
Don't use it directly! Inherit from it. See the CSphericalHarmonicExpansion class below for example.
TBas Should inherit from CHarmonicBasisFunction and TObj Should inherit from CObject1d
Definition at line 114 of file harmonic_expansion.h.
typedef CHarmonicExpansion< TBas, TObj >::const_iterator CHarmonicExpansion< TBas, TObj >::const_term_iterator |
Reimplemented in CSphericalHarmonicExpansion< TObj >, CSphericalHarmonicExpansion< TSource1d >, CSphericalHarmonicExpansion< CSourceFtn1dHisto >, CSphericalHarmonicExpansion< CPairDistribution1dHisto >, and CSphericalHarmonicExpansion< CCorrFtn1dHisto >.
Definition at line 123 of file harmonic_expansion.h.
typedef CHarmonicExpansion< TBas, TObj >::iterator CHarmonicExpansion< TBas, TObj >::term_iterator |
Reimplemented in CSphericalHarmonicExpansion< TObj >, CSphericalHarmonicExpansion< TSource1d >, CSphericalHarmonicExpansion< CSourceFtn1dHisto >, CSphericalHarmonicExpansion< CPairDistribution1dHisto >, and CSphericalHarmonicExpansion< CCorrFtn1dHisto >.
Definition at line 122 of file harmonic_expansion.h.
CHarmonicExpansion< TBas, TObj >::CHarmonicExpansion | ( | void | ) | [inline] |
Definition at line 126 of file harmonic_expansion.h.
CHarmonicExpansion< TBas, TObj >::CHarmonicExpansion | ( | int | _lmax, | |
bool | _skip, | |||
string | _sd, | |||
string | _fp = "term" | |||
) | [inline] |
Definition at line 127 of file harmonic_expansion.h.
virtual CHarmonicExpansion< TBas, TObj >::~CHarmonicExpansion | ( | void | ) | [inline, virtual] |
Definition at line 129 of file harmonic_expansion.h.
virtual bool CHarmonicExpansion< TBas, TObj >::fillTerms | ( | void | ) | [pure virtual] |
Fill out the list with pre-initialized, but empty, terms.
Implemented in CSphericalHarmonicExpansion< TObj >, CSphericalHarmonicExpansion< TSource1d >, CSphericalHarmonicExpansion< CSourceFtn1dHisto >, CSphericalHarmonicExpansion< CPairDistribution1dHisto >, and CSphericalHarmonicExpansion< CCorrFtn1dHisto >.
double CHarmonicExpansion< TBas, TObj >::getErrorCart | ( | double | rS, | |
double | rO, | |||
double | rL | |||
) | const [inline, virtual] |
get uncertainty on value at specific location, in Cartesian coordinates
Implements CObject3d.
Definition at line 219 of file harmonic_expansion.h.
double CHarmonicExpansion< TBas, TObj >::getErrorSphr | ( | double | r, | |
double | theta, | |||
double | phi | |||
) | const [inline, virtual] |
get uncertainty on value at specific location, in spherical coordinates
Implements CObject3d.
Definition at line 196 of file harmonic_expansion.h.
double CHarmonicExpansion< TBas, TObj >::getValueCart | ( | double | rS, | |
double | rO, | |||
double | rL | |||
) | const [inline, virtual] |
get value at specific location, in Cartesian coordinates
Implements CObject3d.
Definition at line 208 of file harmonic_expansion.h.
double CHarmonicExpansion< TBas, TObj >::getValueSphr | ( | double | r, | |
double | theta, | |||
double | phi | |||
) | const [inline, virtual] |
get value at specific location, in spherical coordinates
Implements CObject3d.
Definition at line 185 of file harmonic_expansion.h.
bool CHarmonicExpansion< TBas, TObj >::keepTerm | ( | const_term_iterator | it | ) | const [inline] |
bool CHarmonicExpansion< TBas, TObj >::Read | ( | const parameterMap & | s | ) | [inline, virtual] |
Read from parameterMap.
Reimplemented from CObject3d.
Reimplemented in CCorrFtn3dSphr, CPairDistribution3dSphr, CSourceFtn3dSphr< TSource1d >, and CSourceFtn3dSphr< CSourceFtn1dHisto >.
Definition at line 133 of file harmonic_expansion.h.
bool CHarmonicExpansion< TBas, TObj >::Write | ( | parameterMap & | s | ) | [inline, virtual] |
Write to parameterMap.
Reimplemented from CObject3d.
Reimplemented in CCorrFtn3dSphr, CPairDistribution3dSphr, CSourceFtn3dSphr< TSource1d >, and CSourceFtn3dSphr< CSourceFtn1dHisto >.
Definition at line 148 of file harmonic_expansion.h.
virtual bool CHarmonicExpansion< TBas, TObj >::writeTerms | ( | void | ) | [inline, virtual] |
Write terms to disk.
Reimplemented from CObject3d.
Definition at line 159 of file harmonic_expansion.h.
string CHarmonicExpansion< TBas, TObj >::file_prefix |
Definition at line 119 of file harmonic_expansion.h.
int CHarmonicExpansion< TBas, TObj >::lmax |
Definition at line 120 of file harmonic_expansion.h.
bool CHarmonicExpansion< TBas, TObj >::skip_odd_l |
Definition at line 121 of file harmonic_expansion.h.
string CHarmonicExpansion< TBas, TObj >::storage_directory |
Definition at line 118 of file harmonic_expansion.h.