sources
Class Smoothing

java.lang.Object
  extended bysources.Smoothing
Direct Known Subclasses:
PolynomialRegression, Regression

public abstract class Smoothing
extends java.lang.Object

A superclass for all classes that wants to draw density estimations


Field Summary
protected  LDataSet dat
          Creates new Smoothing
 
Constructor Summary
Smoothing()
           
 
Method Summary
abstract  void calcNow(int width, int height, boolean onlyselected, int[] xval, int[] yval)
          Calculates the Smoothing
abstract  double[] getResiduals()
          returns an array of residuals
abstract  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
 

Field Detail

dat

protected LDataSet dat
Creates new Smoothing

Constructor Detail

Smoothing

public Smoothing()
Method Detail

paintSmooth

public abstract void paintSmooth(java.awt.Graphics gr)
Paints the Smoothing

Parameters:
gr - the Graphics to paint on

getResiduals

public abstract double[] getResiduals()
returns an array of residuals

Returns:
the residuals

calcNow

public abstract void calcNow(int width,
                             int height,
                             boolean onlyselected,
                             int[] xval,
                             int[] yval)
Calculates the 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