|
Jpp
debug
the software that should make you happy
|
Recursive template class for polynomial function. More...
#include <JMathlib.hh>
Public Member Functions | |
| JPolynome () | |
| Default constructor. More... | |
| template<class ... Args> | |
| JPolynome (const Args &...args) | |
| Constructor. More... | |
| double | getValue (const double x) const |
| Function value. More... | |
| double | getDerivative (const double x) const |
| Derivative value. More... | |
| const JPolynome & | getGradient (const double x) const |
| Get gradient. More... | |
| 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 values. 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... | |
| double | operator() (const Args &...args) const |
| Function value. More... | |
| JPolynome< ID_t, N > & | negate () |
| Negate function. More... | |
| JPolynome< ID_t, N > & | add (const JPolynome< ID_t, N > &f1) |
| Add function. More... | |
| JPolynome< ID_t, N > & | sub (const JPolynome< ID_t, N > &f1) |
| Subtract function. More... | |
| JPolynome< ID_t, N > & | mul (const double factor) |
| Scale function. More... | |
| JPolynome< ID_t, N > & | div (const double factor) |
| Scale function. 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 JSecond_t &object) |
| Multiply with object. More... | |
Public Attributes | |
| double | a |
| a[N] More... | |
Static Public Attributes | |
| static const int | ID = ID_t |
| static const size_t | NUMBER_OF_DEGREES = N |
| static const parameter_list< JPolynome > | parameters |
| parameters More... | |
Protected Member Functions | |
| void | set (const double *pA) |
| Set parameter values. More... | |
Private Member Functions | |
| template<class ... Args> | |
| void | __set__ (const double x, const Args &...args) |
| Recursive method for setting values. More... | |
| void | __set__ () const |
| Termination method for setting values. More... | |
Recursive template class for polynomial function.
Polynome function object.
Evaluates function, derivative, integral and gradient values.
Definition at line 1377 of file JMathlib.hh.
|
inline |
Default constructor.
Definition at line 1397 of file JMathlib.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Constructor.
| __begin | begin of data |
| __end | end of data |
Definition at line 190 of file JPolynome.hh.
|
inline |
|
inline |
Function value.
| x | abscissa value |
Definition at line 1421 of file JMathlib.hh.
|
inline |
Derivative value.
| x | abscissa value |
Definition at line 1433 of file JMathlib.hh.
|
inline |
Get gradient.
| x | abscissa value |
Definition at line 1445 of file JMathlib.hh.
|
inlineprotected |
Set parameter values.
| pA | pointer to list of values |
Definition at line 1465 of file JMathlib.hh.
|
inline |
Set values.
| args | values |
Definition at line 217 of file JPolynome.hh.
|
inline |
Function value.
| x | abscissa value |
Definition at line 233 of file JPolynome.hh.
|
inline |
Derivative value.
| x | abscissa value |
Definition at line 252 of file JPolynome.hh.
|
inline |
|
inline |
Function value.
| x | abscissa value |
Definition at line 296 of file JPolynome.hh.
|
inline |
|
inline |
|
inline |
Get gradient.
| x | abscissa value |
Definition at line 354 of file JPolynome.hh.
|
inlineprivate |
Recursive method for setting values.
| x | next value |
| args | remaining values |
Definition at line 375 of file JPolynome.hh.
|
inlineprivate |
|
inlineinherited |
Function value.
| args | abscissa value(s) |
Definition at line 362 of file JMathlib.hh.
|
inlineinherited |
|
inlineinherited |
Add function.
| f1 | function |
Definition at line 219 of file JMathlib.hh.
|
inlineinherited |
Subtract function.
| f1 | function |
Definition at line 235 of file JMathlib.hh.
|
inlineinherited |
Scale function.
| factor | factor |
Definition at line 251 of file JMathlib.hh.
|
inlineinherited |
Scale function.
| factor | factor |
Definition at line 267 of file JMathlib.hh.
|
inlineinherited |
Equality.
| P | polynome |
| eps | numerical precision |
Definition at line 47 of file JPolynome.hh.
|
inlineinherited |
Add polynome.
| polynome | polynome |
Definition at line 73 of file JPolynome.hh.
|
inlineinherited |
Subtract polynome.
| polynome | polynome |
Definition at line 93 of file JPolynome.hh.
|
inlineinherited |
Scale polynome.
| factor | multiplication factor |
Definition at line 113 of file JPolynome.hh.
|
inlineinherited |
|
static |
Definition at line 1382 of file JMathlib.hh.
|
static |
Definition at line 1384 of file JMathlib.hh.
| double JMATH::JPolynome< ID_t, N >::a |
a[N]
Definition at line 1456 of file JMathlib.hh.
|
static |