edu.ucla.stat.SOCR.experiments
Class BivariateUniformExperiment

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.BivariateUniformExperiment
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 BivariateUniformExperiment
extends Experiment

This class models a bivariate uniform experiment. Three regions can be selected: a square region, a circular region, and a triangular region.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
MultiplePartsPanel.SOCRToolBar
 
Field Summary
 
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, toolbar2, toolbars
 
Constructor Summary
BivariateUniformExperiment()
          This method initializes the experiment, including the distribution choice, toolbar, scatterplot, random variable tables and graphs.
 
Method Summary
 void doExperiment()
          This method defines the experiment.
 void itemStateChanged(java.awt.event.ItemEvent event)
          This method handles the choice events that occur when the distribuiton is changed.
 void reset()
          This method resets the experiment, including the random variable graphs and tables, the record table, the scatterplot, and the correlation table.
 void update()
          This method updates the experiment, including the record table, random variable graphs and tables, correlation table.
 
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, 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
 

Constructor Detail

BivariateUniformExperiment

public BivariateUniformExperiment()
This method initializes the experiment, including the distribution choice, toolbar, scatterplot, random variable tables and graphs.

Method Detail

doExperiment

public void doExperiment()
This method defines the experiment. A point from the specified uniform distribution is simulated and passed to the scatterplot.

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

update

public void update()
This method updates the experiment, including the record table, random variable graphs and tables, correlation table.

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

reset

public void reset()
This method resets the experiment, including the random variable graphs and tables, the record table, the scatterplot, and the correlation table.

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

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events that occur when the distribuiton is changed.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Overrides:
itemStateChanged in class Experiment