8 #include "PolynomialBivariate.h"
18 Isis::
BasisFunction(
"PolynomialBivariate", 2, ((degree + 1) * (degree + 2)) / 2) {
30 std::vector<std::vector<double> > terms;
32 terms[0].push_back(1.0);
34 for(
int t = 0; t < (int)terms[i-1].size(); t++) {
35 terms[i].push_back(terms[i-1][t] * vars[0]);
36 if(t == ((
int)terms[i-1].size() - 1)) {
37 terms[i].push_back(terms[i-1][t] * vars[1]);
44 for(
int t = 0; t < (int)terms[i].size(); t++) {