sources
Class PolynomialRegression

java.lang.Object
  extended bysources.Smoothing
      extended bysources.PolynomialRegression

public class PolynomialRegression
extends Smoothing

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

PolynomialRegression

public PolynomialRegression(ContinuousVariable vx,
                            ContinuousVariable vy,
                            int grad)
Creates new PolynomialRegression

Method Detail

paintSmooth

public void paintSmooth(java.awt.Graphics gr)
Description copied from class: Smoothing
Paints the Smoothing

Specified by:
paintSmooth in class Smoothing
Parameters:
gr - the Graphics to paint on

getResiduals

public double[] getResiduals()
Description copied from class: Smoothing
returns an array of residuals

Specified by:
getResiduals in class Smoothing
Returns:
the residuals

calcNow

public void calcNow(int width,
                    int height,
                    boolean onlyselected,
                    int[] vv,
                    int[] yv)
Description copied from class: Smoothing
Calculates the Smoothing

Specified by:
calcNow in class Smoothing
Parameters:
width - the width of the image
height - the height of the image
onlyselected - true, if only selection has changed
vv - the x-values of the points
yv - the y values of the points