edu.ucla.stat.SOCR.util
Class CurvedGaussian

java.lang.Object
  extended by edu.ucla.stat.SOCR.util.CurvedGaussian

public class CurvedGaussian
extends java.lang.Object


Constructor Summary
CurvedGaussian(int xSize, int ySize, double w)
           
 
Method Summary
 double[] calcp(Database db)
           
 double density(int x, int y)
           
 void drawCurvedOval(java.awt.Graphics g, double x1, double y1, double x2, double y2, double r1, double r2)
           
 void EMpar(Database db, double prior)
           
 void EMprob(double[] px, Database db)
           
 double[] getPar()
           
 java.awt.Polygon getPolygon()
           
 void paint(java.awt.Graphics g, Database db)
           
 void paint(java.awt.Graphics g, Database db, java.awt.Color KernelColor)
           
 void randomKernel(double w)
           
 void save2ndGaussianPolygon(double x1, double y1, double x2, double y2, double r1, double r2)
           
 void setplotline()
           
 void setPolygon(java.awt.Polygon _gaussian2ndPolygon)
           
 void setweight(double w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurvedGaussian

public CurvedGaussian(int xSize,
                      int ySize,
                      double w)
Method Detail

randomKernel

public void randomKernel(double w)

setplotline

public void setplotline()

getPar

public double[] getPar()

paint

public void paint(java.awt.Graphics g,
                  Database db)

paint

public void paint(java.awt.Graphics g,
                  Database db,
                  java.awt.Color KernelColor)

drawCurvedOval

public void drawCurvedOval(java.awt.Graphics g,
                           double x1,
                           double y1,
                           double x2,
                           double y2,
                           double r1,
                           double r2)

save2ndGaussianPolygon

public void save2ndGaussianPolygon(double x1,
                                   double y1,
                                   double x2,
                                   double y2,
                                   double r1,
                                   double r2)

setPolygon

public void setPolygon(java.awt.Polygon _gaussian2ndPolygon)

getPolygon

public java.awt.Polygon getPolygon()

density

public double density(int x,
                      int y)

EMpar

public void EMpar(Database db,
                  double prior)

setweight

public void setweight(double w)

calcp

public double[] calcp(Database db)

EMprob

public void EMprob(double[] px,
                   Database db)