sources
Class Regression

java.lang.Object
  extended bysources.Smoothing
      extended bysources.Regression

public class Regression
extends Smoothing

Class that draws a regression line, not supported in this version of VanGogh


Field Summary
 
Fields inherited from class sources.Smoothing
dat
 
Constructor Summary
Regression()
           
Regression(LDataSet data)
          Creates new Regression
 
Method Summary
 void calcNow(int width, int height, boolean onlyselected, int[] xval, int[] yval)
          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

Regression

public Regression(LDataSet data)
Creates new Regression


Regression

public Regression()
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[] xval,
                    int[] yval)
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
xval - the x-values of the points
yval - the y values of the points