edu.ucla.stat.SOCR.experiments
Class SampleMeanExperiment
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.SampleMeanExperiment
- 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 SampleMeanExperiment
- extends Experiment
This class models the sample mean experiment. A random sample of a specified
size is drawn from a specified distribution. The density of the sampling
distribution and of the distribution of the sample mean are shown.
Method Summary |
void |
doExperiment()
This method defines the experiment. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events associated with changing the
sampling distribution. |
void |
reset()
This method resets the distribution. |
void |
setDistributions()
This method sets the distribution following changes in the parameters of
the sampling distribution. |
void |
update()
This method updates the experiment. |
void |
update(java.util.Observable o,
java.lang.Object arg)
This method handles the scroll events associated with changes in the
sample size or the parameters of the sampling distribution. |
Methods inherited from class edu.ucla.stat.SOCR.core.Experiment |
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, initialize, 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 |
SampleMeanExperiment
public SampleMeanExperiment()
- This method initializes the experiment.
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
- This method handles the choice events associated with changing the
sampling distribution.
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
- Overrides:
itemStateChanged
in class Experiment
update
public void update(java.util.Observable o,
java.lang.Object arg)
- This method handles the scroll events associated with changes in the
sample size or the parameters of the sampling distribution.
- Specified by:
update
in interface java.util.Observer
- Overrides:
update
in class MultiplePartsPanel
reset
public void reset()
- This method resets the distribution.
- Specified by:
reset
in interface IExperiment
- Overrides:
reset
in class Experiment
setDistributions
public void setDistributions()
- This method sets the distribution following changes in the parameters of
the sampling distribution.
doExperiment
public void doExperiment()
- This method defines the experiment.
- Specified by:
doExperiment
in interface IExperiment
- Overrides:
doExperiment
in class Experiment
update
public void update()
- This method updates the experiment.
- Specified by:
update
in interface IExperiment
- Overrides:
update
in class Experiment