|
| Poly2d (int xo, int yo, double xm, double ym, double xn, double yn) |
| Simple constructor.
|
|
| Poly2d () |
| Empty constructor.
|
|
| Poly2d (const Poly2d &p) |
| Copy constructor.
|
|
Poly2d & | operator= (const Poly2d &) |
| Assignment operator.
|
|
void | setCoeff (int row, int col, double val) |
| Set coefficient by indices.
|
|
double | getCoeff (int row, int col) const |
| Get coefficient by indices.
|
|
double | eval (double y, double x) const |
| Evaluate polynomial at given y/azimuth/row ,x/range/col.
|
|
void | printPoly () const |
| Printing for debugging.
|
|
Data structure for representing 2D polynomials.
Poly2D is function of the form
\[ f\left( y, x \right) = \sum_{i=0}^{N_y} \sum_{j=0}^{N_x} a_{ij} \cdot \left( \frac{y-\mu_y}{\sigma_y} \right)^i
\cdot \left( \frac{x-\mu_x}{\sigma_x} \right)^j
\]
where \(a_ij\) represents the coefficients, \(\mu_x\) and \(\mu_y\) represent the means and \(\sigma_x\) and \(\sigma_y\) represent the norms