edu.ucla.stat.SOCR.chart.util
Class MixtureEMExperiment

java.lang.Object
  extended by edu.ucla.stat.SOCR.core.SOCRValueSettable
      extended by edu.ucla.stat.SOCR.core.MultiplePartsPanel
          extended by edu.ucla.stat.SOCR.core.Experiment
              extended by edu.ucla.stat.SOCR.chart.util.MixtureEMExperiment
All Implemented Interfaces:
IExperiment, IValueSettable, Pluginable, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.lang.Runnable, java.util.EventListener, java.util.Observer

public class MixtureEMExperiment
extends Experiment


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
MultiplePartsPanel.SOCRToolBar
 
Field Summary
static int CG_MIX
           
static int GL_MIX
           
 
Fields inherited from class edu.ucla.stat.SOCR.core.Experiment
showModelDistribution
 
Fields inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
 
Constructor Summary
MixtureEMExperiment()
           
MixtureEMExperiment(double x, double y)
           
MixtureEMExperiment(double x, double y, double sx, double sy)
           
 
Method Summary
 void EM(double[] ws)
           
 java.awt.Paint[] getColorOfGroups()
           
 java.awt.Paint[] getColorOfKernels()
           
 java.awt.Paint getColorOfMainGroup()
           
 Database getDB()
           
 XYDataset[] getKernels()
           
 int getMixSelected()
           
 java.lang.String getName()
           
 int getNumOfGroup()
           
 int getNumOfKernels()
           
 XYDataset getPoints()
           
 CustomJTable getResultsTable()
           
 XYDataset getSegmentedPoints()
           
 void init(double x, double y, double sx, double sy)
           
protected  void initResutlsTable()
           
 void reset()
          This method is the default reset method, that resets the process to its initial state.
protected  void resetRTableRows(int n)
           
 void resetSize()
           
 void resetSize(double _xSize, double _ySize, double _xStart, double _yStart)
           
 void resetSize(int kernel_index, double _xSize, double _ySize, double _xStart, double _yStart)
           
 void setManualKernel(boolean b)
           
 void setMixSelected(int m)
           
 void setName(java.lang.String n)
           
 void setnk(int nk, double[] ws)
           
 void setNumOfKernels(int n)
           
 void update()
          This method updates the display, including the ball panel, the record table, and the random variable graph and table
 
Methods inherited from class edu.ucla.stat.SOCR.core.Experiment
actionPerformed, doExperiment, getAppletInfo, getDisplayPane, getInstance, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, initialize, itemStateChanged, pasteData, resetUpdateCount, run, setShowModelDistribution, setStopFreq, setStopNow, step, stop
 
Methods inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, removeToolbar, setApplet, update
 
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ucla.stat.SOCR.core.Pluginable
setApplet
 

Field Detail

GL_MIX

public static final int GL_MIX
See Also:
Constant Field Values

CG_MIX

public static final int CG_MIX
See Also:
Constant Field Values
Constructor Detail

MixtureEMExperiment

public MixtureEMExperiment()

MixtureEMExperiment

public MixtureEMExperiment(double x,
                           double y)

MixtureEMExperiment

public MixtureEMExperiment(double x,
                           double y,
                           double sx,
                           double sy)
Method Detail

setMixSelected

public void setMixSelected(int m)

getMixSelected

public int getMixSelected()

getKernels

public XYDataset[] getKernels()

EM

public void EM(double[] ws)

setNumOfKernels

public void setNumOfKernels(int n)

setManualKernel

public void setManualKernel(boolean b)

setnk

public void setnk(int nk,
                  double[] ws)

getDB

public Database getDB()

init

public void init(double x,
                 double y,
                 double sx,
                 double sy)

resetSize

public void resetSize()

resetSize

public void resetSize(double _xSize,
                      double _ySize,
                      double _xStart,
                      double _yStart)

resetSize

public void resetSize(int kernel_index,
                      double _xSize,
                      double _ySize,
                      double _xStart,
                      double _yStart)

reset

public void reset()
Description copied from class: Experiment
This method is the default reset method, that resets the process to its initial state. This method should be overridden.

Specified by:
reset in interface IExperiment
Overrides:
reset in class Experiment

initResutlsTable

protected void initResutlsTable()

resetRTableRows

protected void resetRTableRows(int n)

getName

public java.lang.String getName()
Specified by:
getName in interface Pluginable
Overrides:
getName in class Experiment
Returns:
Returns the fName.

setName

public void setName(java.lang.String n)
Overrides:
setName in class MultiplePartsPanel
Parameters:
n - The fName to set.

update

public void update()
This method updates the display, including the ball panel, the record table, and the random variable graph and table

Specified by:
update in interface IExperiment
Overrides:
update in class Experiment

getPoints

public XYDataset getPoints()

getSegmentedPoints

public XYDataset getSegmentedPoints()

getResultsTable

public CustomJTable getResultsTable()

getNumOfKernels

public int getNumOfKernels()

getNumOfGroup

public int getNumOfGroup()

getColorOfGroups

public java.awt.Paint[] getColorOfGroups()

getColorOfKernels

public java.awt.Paint[] getColorOfKernels()

getColorOfMainGroup

public java.awt.Paint getColorOfMainGroup()