sources
Class MarronDens

java.lang.Object
  extended bysources.DensityEstimator
      extended bysources.MarronDens

public class MarronDens
extends DensityEstimator

This class is responsible for drawing a gaussian density estimation


Field Summary
 
Fields inherited from class sources.DensityEstimator
binmod, COLORED, dat, EASY_BINNING, GROWING, LINEAR_BINNING, maxalpha, modus, punktgr, sizex, sizey, SUNFLOWERS
 
Constructor Summary
MarronDens(LDataSet data, int punktgr2, float maxal2, int mod1)
          Creates new MarronDens
 
Method Summary
 double calcSigma(int[] z)
           
 void createRects(int width, int height, boolean onlySelected, int[] x, int[] y)
          prepare the Binning
 void drawPfeil(java.awt.Graphics g, int x1, int y1, int x2, int y2)
           
 void fillR(int[] byt, int width, int height, int col, int x, int y, int b, int h)
           
 double[][] matmult(int[][] mat, double[][] ent, int n, int m, int mo)
           
 void paintDensity(java.awt.Graphics g, java.awt.Rectangle vsRect)
          paint the density
 double sign(double x)
           
 
Methods inherited from class sources.DensityEstimator
getBinning, getPointPainter, paintFlower, setAlpha, setBinning, setPointPainter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarronDens

public MarronDens(LDataSet data,
                  int punktgr2,
                  float maxal2,
                  int mod1)
Creates new MarronDens

Method Detail

paintDensity

public void paintDensity(java.awt.Graphics g,
                         java.awt.Rectangle vsRect)
Description copied from class: DensityEstimator
paint the density

Specified by:
paintDensity in class DensityEstimator
Parameters:
g - the Graphics to paint on
vsRect - the visible Rectangle

matmult

public double[][] matmult(int[][] mat,
                          double[][] ent,
                          int n,
                          int m,
                          int mo)

sign

public double sign(double x)

calcSigma

public double calcSigma(int[] z)

drawPfeil

public void drawPfeil(java.awt.Graphics g,
                      int x1,
                      int y1,
                      int x2,
                      int y2)

fillR

public void fillR(int[] byt,
                  int width,
                  int height,
                  int col,
                  int x,
                  int y,
                  int b,
                  int h)

createRects

public void createRects(int width,
                        int height,
                        boolean onlySelected,
                        int[] x,
                        int[] y)
Description copied from class: DensityEstimator
prepare the Binning

Specified by:
createRects in class DensityEstimator
Parameters:
width - the width of the picture
height - the height of the picture
onlySelected - true, if only the selected values has changed
x - x values
y - y values