edu.ucla.stat.SOCR.experiments
Class PoissonSplitExperiment
java.lang.Object
edu.ucla.stat.SOCR.core.SOCRValueSettable
edu.ucla.stat.SOCR.core.MultiplePartsPanel
edu.ucla.stat.SOCR.core.Experiment
edu.ucla.stat.SOCR.experiments.PoissonSplitExperiment
- 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 PoissonSplitExperiment
- extends Experiment
This class models the two-type Poisson experiment. Each arrival,
independently, is one of two types. The arrivals are shown as dots on a
timeline, colored red or green to indicate the type. The random variables of
interest are the number of arrivals of the two types in an interval of a
specified size. The rate of the process and the probability that governs the
type can also be varied
Constructor Summary |
PoissonSplitExperiment()
This method initializes the experiment, including the toolbar with the
scrollbars and labels, the random variable graphs and tables, the
timeline and the record table |
Method Summary |
void |
doExperiment()
This method defines the experiment. |
void |
reset()
This method resets the experiment, including the timeline, the random
variable graphs and tables, and the record table |
void |
setDistribution()
This method sets the parameters of the distribution when the parameters
of the experiment have changed |
void |
update()
This method updates the displays, including the timeline, the random
variable graphs and tables, and the record table |
void |
update(java.util.Observable o,
java.lang.Object arg)
This method handles the scrollbar events for adjusting the size of the
interval, the rate of the process, and the probability of a type 1
arrival |
Methods inherited from class edu.ucla.stat.SOCR.core.Experiment |
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoissonSplitExperiment
public PoissonSplitExperiment()
- This method initializes the experiment, including the toolbar with the
scrollbars and labels, the random variable graphs and tables, the
timeline and the record table
doExperiment
public void doExperiment()
- This method defines the experiment. The arrivals are generated and tested
to see if they fall in the interval. Each interval is randomly assigned a
type. The values of the random variables are computed.
- Specified by:
doExperiment
in interface IExperiment
- Overrides:
doExperiment
in class Experiment
reset
public void reset()
- This method resets the experiment, including the timeline, the random
variable graphs and tables, and the record table
- Specified by:
reset
in interface IExperiment
- Overrides:
reset
in class Experiment
update
public void update()
- This method updates the displays, including the timeline, the random
variable graphs and tables, and the record table
- Specified by:
update
in interface IExperiment
- Overrides:
update
in class Experiment
update
public void update(java.util.Observable o,
java.lang.Object arg)
- This method handles the scrollbar events for adjusting the size of the
interval, the rate of the process, and the probability of a type 1
arrival
- Specified by:
update
in interface java.util.Observer
- Overrides:
update
in class MultiplePartsPanel
setDistribution
public void setDistribution()
- This method sets the parameters of the distribution when the parameters
of the experiment have changed