Isis 3 Programmer Reference
PolynomialUnivariate.h
1 #ifndef PolynomialUnivariate_h
2 #define PolynomialUnivariate_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include <vector>
10 #include "Basis1VariableFunction.h"
11 
12 namespace Isis {
38  public:
39  PolynomialUnivariate(int degree);
40  PolynomialUnivariate(int degree, std::vector<double> coeffs);
41 
44 
45  void Expand(const std::vector<double> &vars);
46 
47  double DerivativeVar(const double value);
48  double DerivativeCoef(const double value, const int coefIndex);
49 
50  private:
51  int p_degree;
52  };
53 };
54 
55 #endif
56 
Isis::PolynomialUnivariate::p_degree
int p_degree
The order/degree of the polynomial.
Definition: PolynomialUnivariate.h:51
Isis::PolynomialUnivariate
Nth degree Polynomial with one variable.
Definition: PolynomialUnivariate.h:37
Isis::PolynomialUnivariate::PolynomialUnivariate
PolynomialUnivariate(int degree)
Create a PolynomialUnivariate object.
Definition: PolynomialUnivariate.cpp:21
Isis::PolynomialUnivariate::DerivativeVar
double DerivativeVar(const double value)
This will take the Derivative with respect to the variable and evaluate at given value.
Definition: PolynomialUnivariate.cpp:67
Isis::PolynomialUnivariate::DerivativeCoef
double DerivativeCoef(const double value, const int coefIndex)
Evaluate the derivative of the polynomial defined by the given coefficients with respect to the coeff...
Definition: PolynomialUnivariate.cpp:90
Isis::Basis1VariableFunction
Time based linear equation class.
Definition: Basis1VariableFunction.h:50
Isis::PolynomialUnivariate::~PolynomialUnivariate
~PolynomialUnivariate()
Destroys the PolynomialUnivariate object.
Definition: PolynomialUnivariate.h:43
Isis::PolynomialUnivariate::Expand
void Expand(const std::vector< double > &vars)
This is the the overriding virtual function that provides the expansion of the two input variables in...
Definition: PolynomialUnivariate.cpp:48
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16