OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
A monomial class to hold a monomial as a term. More...
#include <ossimTerm.h>
Public Member Functions | |
ossimMonom (const ossim_float64 &coeffient, ossimTerm *variable, const ossim_float64 &exponential) | |
Public Constructor. More... | |
ossimMonom (const ossimMonom &src) | |
Public Copy Constructor. More... | |
~ossimMonom () | |
Destroys the monomial. More... | |
ossim_float64 | evaluate (std::vector< ossim_float64 > point) const |
Evaluates a monomial for a point. More... | |
ossimTerm * | derivative (const ossim_uint32 &variable) const |
Calculates the derivative for a monomial. More... | |
ossim_uint32 | getType () const |
Gets the type of a monomial. More... | |
ossimTerm * | copy () const |
Creates a copy of the monomial. More... | |
![]() | |
virtual | ~ossimTerm () |
Virtual destructor for destroying tree from the top node. More... | |
ossim_float64 | operator() (std::vector< ossim_float64 > point) const |
Evaluates the function for a point. More... | |
ossimTerm * | operator+ (ossimTerm *rhs) const |
Returns a copy of the two terms in a polynomial. More... | |
ossimTerm * | operator* (ossimTerm *rhs) const |
Returns a copy of the two terms in a product. More... | |
Private Attributes | |
ossim_float64 | coef |
ossimTerm * | var |
ossim_float64 | exp |
A monomial class to hold a monomial as a term.
Example (c_0 * x_0 ^ e_0)
Definition at line 112 of file ossimTerm.h.
|
inline |
Public Constructor.
[in] | coeffient | The coeffient of the term |
variable | The variable the variable number of the term | |
[in] | exponential | The exponential of the term |
Definition at line 123 of file ossimTerm.h.
Referenced by copy(), and derivative().
|
inline |
Public Copy Constructor.
[in] | src | The source to be copied |
Definition at line 129 of file ossimTerm.h.
|
inline |
|
virtual |
Creates a copy of the monomial.
Implements ossimTerm.
Definition at line 65 of file ossimTerm.cpp.
References coef, ossimTerm::copy(), exp, ossimMonom(), and var.
|
virtual |
Calculates the derivative for a monomial.
OSSIM MONOMIAL AS A TERM.
[in] | variable | The variable in which the derivative is with respect too. |
Calculates the derivative for a monomial
[in] | variable | The variable in which the derivative is with respect too. |
Implements ossimTerm.
Definition at line 55 of file ossimTerm.cpp.
References coef, ossimTerm::derivative(), exp, ossimMonom(), var, and variable.
|
inlinevirtual |
Evaluates a monomial for a point.
[in] | point | The point to be evaluated |
Implements ossimTerm.
Definition at line 143 of file ossimTerm.h.
|
inlinevirtual |
Gets the type of a monomial.
Implements ossimTerm.
Definition at line 159 of file ossimTerm.h.
References monomial.
|
private |
Definition at line 168 of file ossimTerm.h.
Referenced by copy(), and derivative().
|
private |
Definition at line 170 of file ossimTerm.h.
Referenced by copy(), and derivative().
|
private |
Definition at line 169 of file ossimTerm.h.
Referenced by copy(), and derivative().