10 #define OSSIM_TERM_H 1 53 virtual ossim_float64 evaluate(std::vector<ossim_float64> )
const = 0;
209 ossim_float64 evaluate(std::vector<ossim_float64> point)
const {
return lTerm->evaluate(point) + rTerm->evaluate(point); }
274 ossim_float64 evaluate(std::vector<ossim_float64> point)
const {
return lTerm->evaluate(point) * rTerm->evaluate(point); }
431 #endif // OSSIM_TERM_H ossimPolynomial(const ossimPolynomial &src)
Public Copy Constructor.
ossim_uint32 getType() const
Gets the type of a polynomial.
ossim_float64 evaluate(std::vector< ossim_float64 > point) const
Evaluates a variable for a point.
~ossimPolynomial()
Destroys the polynomial.
An abstract class to containing a multivariable function.
ossim_uint32 getType() const
Gets the type of a constant.
virtual ossimTerm * derivative(const ossim_uint32 &variable) const =0
Calculates the derivative of the term.
~ossimMonom()
Destroys the monomial.
A monomial class to hold a monomial as a term.
ossimVar(const ossim_uint32 &variable)
Public Constructor.
ossim_uint32 getType() const
Gets the type of a monomial.
A variable class to hold a variable as a term.
A polynomial class to hold a product as a term.
ossimRationalNumber operator*(ossim_int32 i, ossimRationalNumber &r)
ossim_uint32 getType() const
Gets the type of a variable.
~ossimProd()
Destroys the product.
unsigned int ossim_uint32
ossimVar(const ossimVar &src)
Public Copy Constructor.
ossimConst(const ossimConst &src)
Public Copy Constructor.
~ossimConst()
Destroys the constant.
A polynomial class to hold a polynomial as a term.
~ossimVar()
Destroys the variable.
A constant class to hold a constant as a term.
ossim_float64 evaluate(std::vector< ossim_float64 >) const
Evaluates a constant for a point.
ossimMonom(const ossim_float64 &coeffient, ossimTerm *variable, const ossim_float64 &exponential)
Public Constructor.
termType
Mathematical term data structure for ossim.
ossimPolynomial(ossimTerm *leftTerm, ossimTerm *rightTerm)
Public Constructor.
ossim_float64 evaluate(std::vector< ossim_float64 > point) const
Evaluates a product for a point.
ossimMonom(const ossimMonom &src)
Public Copy Constructor.
ossim_float64 operator()(std::vector< ossim_float64 > point) const
Evaluates the function for a point.
ossimConst(const ossim_float64 &value)
Public Constructor.
ossimProd(const ossimProd &src)
Public Copy Constructor.
virtual ossimTerm * copy() const =0
Returns a pointer to a copy of the term.
ossimProd(ossimTerm *leftTerm, ossimTerm *rightTerm)
Public Constructor.
ossimRationalNumber operator+(ossim_int32 i, ossimRationalNumber &r)
virtual ~ossimTerm()
Virtual destructor for destroying tree from the top node.
ossim_float64 evaluate(std::vector< ossim_float64 > point) const
Evaluates a monomial for a point.
ossim_uint32 getType() const
Gets the type of a product.
ossim_float64 evaluate(std::vector< ossim_float64 > point) const
Evaluates a polynomial for a point.