Small class to compure switching functions in the form In the future we might extend it so as to be set using a string: void set(std::string); which can then be parsed for more complex stuff, e.g. More...
#include <SwitchingFunction.h>
Public Member Functions | |
SwitchingFunction () | |
void | set (int nn, int mm, double r_0, double d_0) |
void | set (const std::string &definition, std::string &errormsg) |
std::string | description () const |
double | calculate (double x, double &df) const |
double | get_d0 () const |
double | get_r0 () const |
Static Public Member Functions | |
static void | registerKeywords (Keywords &keys) |
Private Types | |
enum | { spline, exponential, gaussian, smap } |
Private Attributes | |
bool | init |
enum PLMD::SwitchingFunction:: { ... } | type |
int | nn |
int | mm |
int | a |
int | b |
double | invr0 |
double | d0 |
double | dmax |
double | c |
double | d |
Small class to compure switching functions in the form In the future we might extend it so as to be set using a string: void set(std::string); which can then be parsed for more complex stuff, e.g.
exponentials tabulated functions from file, matheval, etc...
Definition at line 39 of file SwitchingFunction.h.
PLMD::SwitchingFunction::SwitchingFunction | ( | ) |
Definition at line 217 of file SwitchingFunction.cpp.
double PLMD::SwitchingFunction::calculate | ( | double | x, |
double & | df | ||
) | const |
Definition at line 164 of file SwitchingFunction.cpp.
std::string PLMD::SwitchingFunction::description | ( | ) | const |
Definition at line 141 of file SwitchingFunction.cpp.
double PLMD::SwitchingFunction::get_d0 | ( | ) | const |
Definition at line 242 of file SwitchingFunction.cpp.
double PLMD::SwitchingFunction::get_r0 | ( | ) | const |
Definition at line 238 of file SwitchingFunction.cpp.
|
static |
Definition at line 93 of file SwitchingFunction.cpp.
void PLMD::SwitchingFunction::set | ( | int | nn, |
int | mm, | ||
double | r_0, | ||
double | d_0 | ||
) |
Definition at line 228 of file SwitchingFunction.cpp.
void PLMD::SwitchingFunction::set | ( | const std::string & | definition, |
std::string & | errormsg | ||
) |
Definition at line 103 of file SwitchingFunction.cpp.
|
private |
Definition at line 42 of file SwitchingFunction.h.
|
private |
Definition at line 42 of file SwitchingFunction.h.
|
private |
Definition at line 43 of file SwitchingFunction.h.
|
private |
Definition at line 43 of file SwitchingFunction.h.
|
private |
Definition at line 43 of file SwitchingFunction.h.
|
private |
Definition at line 43 of file SwitchingFunction.h.
|
private |
Definition at line 40 of file SwitchingFunction.h.
|
private |
Definition at line 43 of file SwitchingFunction.h.
|
private |
Definition at line 42 of file SwitchingFunction.h.
|
private |
Definition at line 42 of file SwitchingFunction.h.
enum { ... } PLMD::SwitchingFunction::type |
Hosted by GitHub
![]() |
![]() |