|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.datamodel.RationalFunctionModel
public class RationalFunctionModel
Class for approximating a function of two variables with a rational function.
| Constructor Summary | |
|---|---|
RationalFunctionModel(int degreeP,
int degreeQ,
double[] x,
double[] y,
double[] g)
Constructs a rational function model for approximating a function g(x, y) with a rational function R(x, y) = P(x, y) / Q(x, y) where P and Q are polynomials of up to 4th degree. |
|
| Method Summary | |
|---|---|
double |
getRmse()
Returns the root mean square error (RMSE) of the approximation. |
static int |
getTermCountP(int degreeP)
|
static int |
getTermCountQ(int degreeQ)
|
double |
getValue(double x,
double y)
Returns the rational function value approximating g(x, y). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RationalFunctionModel(int degreeP,
int degreeQ,
double[] x,
double[] y,
double[] g)
degreeP - the degree of the numerator polynomial P.degreeQ - the degree of the denominator polynomial Q.x - the x-coordinates corresponding to the function values
being approximated.y - the y-coordinates corresponding to the function values
being approximated.g - the function values g(x, y) being approximated.
IllegalArgumentException - if the degree of the numerator or
denominator polynomial is greater
than four.
IllegalArgumentException - if the lengths of x, y, and g are
not the same.| Method Detail |
|---|
public static int getTermCountP(int degreeP)
public static int getTermCountQ(int degreeQ)
public double getValue(double x,
double y)
x - the x-coordinate.y - the y-coordinate.
public double getRmse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||