8#include "BasisFunction.h" 
   45      QString msg = 
"Unable to set coefficients vector. The size of the given vector ["  
   46                    + 
toString((
int)coefs.size()) + 
"] does not match number of coefficients " 
 
   67      QString msg = 
"Unable to evaluate function for the given vector of values. " 
   68                    "The size of the given vector ["  
   69                    + 
toString((
int)vars.size()) + 
"] does not match number of variables " 
   77      QString msg = 
"Unable to evaluate function for the given vector of values. " 
   78                    "The number of terms in the expansion ["  
   79                    + 
toString( (
int)
p_terms.size() ) + 
"] does not match number of coefficients " 
 
  103    std::vector<double> vars;
 
 
QString p_name
The name of the equation. Call it by using Name()
 
virtual void Expand(const std::vector< double > &vars)
This is the function you should replace depending on your needs.
 
double Evaluate(const std::vector< double > &vars)
Compute the equation using the input variables.
 
int p_numVars
The number of variables in the equation. Call it by using Variables()
 
BasisFunction(const QString &name, int numVars, int numCoefs)
Creates a BasisFunction object.
 
std::vector< double > p_terms
A vector of the terms in the equation.
 
std::vector< double > p_coefs
A vector of the coefficients in the equation.
 
void SetCoefficients(const std::vector< double > &coefs)
Set the coefficients for the equation.
 
int p_numCoefs
The number of coefficients in the equation.
 
@ Programmer
This error is for when a programmer made an API call that was illegal.
 
This is free and unencumbered software released into the public domain.
 
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.