48 Polynomial(T *coefficients,
unsigned int length);
52 std::vector<T> *coefficients;
60 this->coefficients =
new std::vector<T>(0);
62 this->coefficients =
new std::vector<T>(coeffs->size());
64 for(i = 0; i < coeffs->size(); i++) {
65 (*(this->coefficients))[i] = (*coeffs)[i];
74 this->coefficients =
new std::vector<T>(0);
76 this->coefficients =
new std::vector<T>(length);
78 for(i = 0; i < length; i++) {
79 (*(this->coefficients))[i] = coeffs[i];
86 delete this->coefficients;
96 if(NULL == this->coefficients || 0 == this->coefficients->size()) {
100 retval = this->coefficients->at(0);
102 for(order = 1; order < this->coefficients->size(); order++) {
104 retval += this->coefficients->at(order) * acc;
Definition: Polynomial.h:45
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42