|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Smoothing
sources.PolynomialRegression
A class that makes a polynomial regression, not used in this version of VanGogh
Field Summary |
Fields inherited from class sources.Smoothing |
dat |
Constructor Summary | |
PolynomialRegression(ContinuousVariable vx,
ContinuousVariable vy,
int grad)
Creates new PolynomialRegression |
Method Summary | |
void |
calcNow(int width,
int height,
boolean onlyselected,
int[] vv,
int[] yv)
Calculates the Smoothing |
double[] |
getResiduals()
returns an array of residuals |
void |
paintSmooth(java.awt.Graphics gr)
Paints the Smoothing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PolynomialRegression(ContinuousVariable vx, ContinuousVariable vy, int grad)
Method Detail |
public void paintSmooth(java.awt.Graphics gr)
Smoothing
paintSmooth
in class Smoothing
gr
- the Graphics to paint onpublic double[] getResiduals()
Smoothing
getResiduals
in class Smoothing
public void calcNow(int width, int height, boolean onlyselected, int[] vv, int[] yv)
Smoothing
calcNow
in class Smoothing
width
- the width of the imageheight
- the height of the imageonlyselected
- true, if only selection has changedvv
- the x-values of the pointsyv
- the y values of the points
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |