OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
A polynomial class to hold a polynomial as a term. More...
#include <ossimTerm.h>
Public Member Functions | |
ossimPolynomial (ossimTerm *leftTerm, ossimTerm *rightTerm) | |
Public Constructor. More... | |
ossimPolynomial (const ossimPolynomial &src) | |
Public Copy Constructor. More... | |
~ossimPolynomial () | |
Destroys the polynomial. More... | |
ossim_float64 | evaluate (std::vector< ossim_float64 > point) const |
Evaluates a polynomial for a point. More... | |
ossimTerm * | derivative (const ossim_uint32 &variable) const |
Calculates the derivative for a polynomial. More... | |
ossim_uint32 | getType () const |
Gets the type of a polynomial. More... | |
ossimTerm * | copy () const |
Creates a copy of the polynomial. 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 | |
ossimTerm * | lTerm |
ossimTerm * | rTerm |
A polynomial class to hold a polynomial as a term.
Definition at line 179 of file ossimTerm.h.
Public Constructor.
leftTerm | The left term |
rightTerm | The right term |
Definition at line 189 of file ossimTerm.h.
Referenced by copy(), and derivative().
|
inline |
Public Copy Constructor.
[in] | src | The source to be copied |
Definition at line 195 of file ossimTerm.h.
|
inline |
|
virtual |
Creates a copy of the polynomial.
Implements ossimTerm.
Definition at line 93 of file ossimTerm.cpp.
References ossimTerm::copy(), lTerm, ossimPolynomial(), and rTerm.
|
virtual |
Calculates the derivative for a polynomial.
OSSIM POLYNOMIAL AS A TERM.
[in] | variable | The variable in which the derivative is with respect too. |
Calculates the derivative for a polynomial
[in] | variable | The variable in which the derivative is with respect too. |
Implements ossimTerm.
Definition at line 83 of file ossimTerm.cpp.
References ossimTerm::derivative(), lTerm, ossimPolynomial(), rTerm, and variable.
|
inlinevirtual |
Evaluates a polynomial for a point.
[in] | point | The point to be evaluated |
Implements ossimTerm.
Definition at line 209 of file ossimTerm.h.
|
inlinevirtual |
Gets the type of a polynomial.
Implements ossimTerm.
Definition at line 225 of file ossimTerm.h.
References polynomial.
|
private |
Definition at line 234 of file ossimTerm.h.
Referenced by copy(), and derivative().
|
private |
Definition at line 235 of file ossimTerm.h.
Referenced by copy(), and derivative().