edu.ucla.stat.SOCR.experiments
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.experiments.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
 edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.CurvedGaussMixture CGMix
           
 javax.swing.JButton ClearPoints
           
 edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.ControlPanel cPanel
           
 Database DB
           
 java.lang.Thread EM_Thread
           
 javax.swing.JComboBox EMswitch
           
 edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.GaussLineMixture GLMix
           
 javax.swing.JButton InitializeKernel
           
 javax.swing.JComboBox nKernels
           
 edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.PlotCanvas pCanvas
           
 javax.swing.JButton RandomPoints
           
 javax.swing.JComboBox selectmix
           
 javax.swing.JComboBox selectSpeed
           
 double[] ws
           
 double[] ws2
           
 int xSize
           
 int ySize
           
 
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()
           
 
Method Summary
 void doExperiment()
          This method defines what the experiment actually does, and should be overridden
 java.lang.String getAppletInfo()
          This method returns basic information about the applet, including copyright information, descriptive informaion, and instructions.
 java.lang.String getName()
           
 void reset()
          This method is the default reset method, that resets the process to its initial state.
 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, 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, setName, 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

nKernels

public javax.swing.JComboBox nKernels

selectmix

public javax.swing.JComboBox selectmix

EMswitch

public javax.swing.JComboBox EMswitch

selectSpeed

public javax.swing.JComboBox selectSpeed

RandomPoints

public javax.swing.JButton RandomPoints

ClearPoints

public javax.swing.JButton ClearPoints

InitializeKernel

public javax.swing.JButton InitializeKernel

CGMix

public edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.CurvedGaussMixture CGMix

GLMix

public edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.GaussLineMixture GLMix

ws

public double[] ws

ws2

public double[] ws2

EM_Thread

public volatile java.lang.Thread EM_Thread

cPanel

public edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.ControlPanel cPanel

pCanvas

public edu.ucla.stat.SOCR.experiments.MixtureEMExperiment.PlotCanvas pCanvas

DB

public Database DB

xSize

public int xSize

ySize

public int ySize
Constructor Detail

MixtureEMExperiment

public MixtureEMExperiment()
Method Detail

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

getName

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

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

doExperiment

public void doExperiment()
Description copied from class: Experiment
This method defines what the experiment actually does, and should be overridden

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

getAppletInfo

public java.lang.String getAppletInfo()
This method returns basic information about the applet, including copyright information, descriptive informaion, and instructions.

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