|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uol.aig.fts.fitting.PolynomialFitting
public class PolynomialFitting
PolynomialFitting uses weighted lease-square methods to fit a 1-D curve.
Constructor Summary | |
---|---|
PolynomialFitting(int polyDegree)
Constructor. |
Method Summary | |
---|---|
void |
fit(double[] x,
double[] y,
double[] weights)
using these parameters to get a least square fitting. |
double[] |
getFittingParam()
get the fitting parameters. |
double[] |
getResult(double[] x)
using the fitting polynomial to get the new x-y curve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolynomialFitting(int polyDegree)
polyDegree
- the degree of the fitting polynomial.Method Detail |
---|
public void fit(double[] x, double[] y, double[] weights)
x
- the coordinatesy
- the values, y = y(x).weights
- the weights of every x.public double[] getFittingParam()
public double[] getResult(double[] x)
x
- the new coordinates
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |