Jpp
|
Polynome function object. More...
#include <JPolynome.hh>
Public Member Functions | |
JPolynome () | |
Default constructor. More... | |
JPolynome (const JPolynome_t &polynome) | |
Copy constructor. More... | |
template<class T > | |
JPolynome (T __begin, T __end) | |
Constructor. More... | |
template<class... Args> | |
JPolynome (const Args &...args) | |
Initialise constructor. More... | |
template<class... Args> | |
JPolynome & | set (const Args &...args) |
Set array. More... | |
double | getValue (const double x) const |
Function value. More... | |
double | getDerivative (const double x) const |
Derivative value. More... | |
double | getIntegral (const double x) const |
Integral value. More... | |
double | operator() (const double x) const |
Function value. More... | |
JPolynome | getDerivative () const |
Get derivative function. More... | |
JPolynome | getIntegral () const |
get integral function. More... | |
JPolynome_t | getGradient (const double x) const |
Get gradient. More... | |
bool | equals (const JPolynome_t &P, const double eps=std::numeric_limits< double >::min()) const |
Equality. More... | |
JPolynome_t & | add (const JPolynome_t &polynome) |
Add polynome. More... | |
JPolynome_t & | sub (const JPolynome_t &polynome) |
Subtract polynome. More... | |
JPolynome_t & | mul (const double factor) |
Scale polynome. More... | |
JPolynome_t & | mul (const JNullType &object) |
Multiply with object. More... | |
Private Member Functions | |
template<class... Args> | |
void | __set__ (const double x, const Args &...args) |
Recursive method for setting polynome. More... | |
void | __set__ () const |
Termination method for setting polynome. More... | |
Polynome function object.
Evaluates function, derivative, integral and gradient values.
Definition at line 161 of file JPolynome.hh.
|
inline |
|
inline |
Constructor.
__begin | begin of data |
__end | end of data |
Definition at line 188 of file JPolynome.hh.
|
inline |
|
inline |
Set array.
args | values |
Definition at line 214 of file JPolynome.hh.
|
inline |
Function value.
x | abscissa value |
Definition at line 230 of file JPolynome.hh.
|
inline |
Derivative value.
x | abscissa value |
Definition at line 249 of file JPolynome.hh.
|
inline |
Integral value.
x | abscissa value |
Definition at line 273 of file JPolynome.hh.
|
inline |
Function value.
x | abscissa value |
Definition at line 293 of file JPolynome.hh.
|
inline |
|
inline |
|
inline |
Get gradient.
x | abscissa value |
Definition at line 351 of file JPolynome.hh.
|
inlineprivate |
Recursive method for setting polynome.
x | next value |
args | remaining values |
Definition at line 372 of file JPolynome.hh.
|
inlineprivate |
|
inlineinherited |
Equality.
P | polynome |
eps | numerical precision |
Definition at line 45 of file JPolynome.hh.
|
inlineinherited |
Add polynome.
polynome | polynome |
Definition at line 71 of file JPolynome.hh.
|
inlineinherited |
Subtract polynome.
polynome | polynome |
Definition at line 91 of file JPolynome.hh.
|
inlineinherited |
Scale polynome.
factor | multiplication factor |
Definition at line 111 of file JPolynome.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.