Logarithm of function.
More...
#include <JMathlib.hh>
template<class JF1_t>
struct JMATH::JLog< JF1_t >
Logarithm of function.
Definition at line 2555 of file JMathlib.hh.
◆ JLog() [1/2]
◆ JLog() [2/2]
Constructor.
- Parameters
-
Definition at line 2575 of file JMathlib.hh.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
◆ getValue()
template<class JF1_t >
double JMATH::JLog< JF1_t >::getValue |
( |
const double |
x | ) |
const |
|
inline |
Function value.
- Parameters
-
- Returns
- function value
Definition at line 2586 of file JMathlib.hh.
2588 return log(
static_cast<const JF1_t&
>(*this).getValue(
x));
◆ getDerivative()
template<class JF1_t >
double JMATH::JLog< JF1_t >::getDerivative |
( |
const double |
x | ) |
const |
|
inline |
Derivative value.
- Parameters
-
- Returns
- derivative value
Definition at line 2598 of file JMathlib.hh.
2600 return static_cast<const JF1_t&
>(*this).getDerivative(
x) /
static_cast<const JF1_t&
>(*this).getValue(
x);
◆ getGradient()
Get gradient.
- Parameters
-
- Returns
- gradient
Definition at line 2610 of file JMathlib.hh.
2612 static JLog gradient;
2614 gradient =
static_cast<const JF1_t&
>(*this).
getGradient(
x);
2615 gradient /= (
static_cast<const JF1_t&
>(*this).getValue(
x));
const JLog & getGradient(const double x) const
Get gradient.
◆ operator()()
Function value.
- Parameters
-
- Returns
- function value
Definition at line 362 of file JMathlib.hh.
364 return static_cast<const JF1_t&
>(*this).getValue(
args...);
The documentation for this struct was generated from the following file: