bpp-core3
3.0.0
|
Implements a unary operator that applies a math (described in cmath) operator. More...
#include <Bpp/Numeric/Function/Operators/MathOperator.h>
Public Member Functions | |
MathOperator (double(*func)(double), std::string name, std::shared_ptr< Operator > son) | |
MathOperator * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
std::shared_ptr< Operator > | getSon () |
double | getValue () const |
std::string | getName () const |
double | getFirstOrderDerivative (const std::string &variable) const |
1st order derivative More... | |
double | getSecondOrderDerivative (const std::string &variable) const |
std::string | output () const |
Private Attributes | |
double(* | func_ )(double) |
std::string | name_ |
std::shared_ptr< Operator > | son_ |
Implements a unary operator that applies a math (described in cmath) operator.
Definition at line 20 of file MathOperator.h.
|
inline |
Definition at line 36 of file MathOperator.h.
Referenced by clone().
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Definition at line 40 of file MathOperator.h.
References MathOperator().
|
inlinevirtual |
|
inline |
Definition at line 58 of file MathOperator.h.
References name_.
|
inlinevirtual |
Implements bpp::Operator.
Definition at line 80 of file MathOperator.h.
|
inline |
Definition at line 45 of file MathOperator.h.
References son_.
|
inlinevirtual |
|
inlinevirtual |
Implements bpp::Operator.
Definition at line 96 of file MathOperator.h.
|
private |
Definition at line 29 of file MathOperator.h.
Referenced by getValue().
|
private |
Definition at line 31 of file MathOperator.h.
Referenced by getName().
|
private |
Definition at line 33 of file MathOperator.h.
Referenced by getSon().