public class VarianceEstimateExperiment extends Experiment implements java.io.Serializable
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
static int |
INTERVAL |
static int |
LOWER_BOUND |
static int |
UPPER_BOUND |
applet, GREEN, RED, showModelDistribution, stopChoice, stopCount, stopFreq, stopNow, time, timer, toolIndex, updateCount, updateFreq
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
VarianceEstimateExperiment() |
Modifier and Type | Method and Description |
---|---|
void |
doExperiment()
This method defines the experiment.
|
java.lang.String |
getAppletInfo()
This method returns basic information about the applet, including copyright
information, descriptive information, and instructions.
|
javax.swing.JTable |
getResultTable() |
void |
graphUpdate() |
void |
init()
This method initializes the experiment, including the record table, the label for
the critical values, the sliders that control the parameters of the sampling
distribution, the choice box for the type of distribution, the choice box for the
type of interval, the choice box for the confidence level, the choice box for
mu known or unknown, the toolbar, the estimate graph, the chi-square graph, the
success graph, and the success table.
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
This method handles the choice events associated with changing distribution type,
interval type, confidence level, or the state of knowledge of mu.
|
void |
reset()
This method resets the experiment, including the samping and chi-square random
variables, the success graph, the sample array, the estimate graph, the chi-
square graph,the sample table, the record table, and the success table.
|
void |
setDistribution()
This method sets the scrollbars to the appropriate ranges when the distribution type
changes.
|
void |
setParameters()
This method computes the upper and lower critical values when the distribution
or parameters have changed.
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
This method handles the scroll events associated with changing the sample size or
the distribution parameters.
|
void |
step()
This method runs the experiment one time, playing a sound that depends on the
outcome.
|
void |
update()
This method updates the displays, including the estimate graph, the chi-square
graph, the success graph, the sample table, the record table, and the success
table.
|
actionPerformed, addComponent, addComponent, addComponent, addTool, addToolBar, format, getComponentPanel, getDisplayPane, getMainToolBar, getOnlineDescription, getStopChoice, getStopFreq, getTime, getTimer, getUpdateChoice, initialize, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, playnote, playnote, run, setApplet, setDecimalFormat, setShowModelDistribution, setStopChoice, setStopChoiceTipText, setStopFreq, setStopNow, stop, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static final int INTERVAL
public static final int LOWER_BOUND
public static final int UPPER_BOUND
public void init()
init
in class Experiment
public java.lang.String getAppletInfo()
getAppletInfo
in interface IExperiment
getAppletInfo
in class Experiment
public void reset()
reset
in interface IExperiment
reset
in class Experiment
public void doExperiment()
doExperiment
in interface IExperiment
doExperiment
in class Experiment
public void step()
step
in interface IExperiment
step
in class Experiment
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
itemStateChanged
in class Experiment
e
- the item eventpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
stateChanged
in class Experiment
e
- the change eventpublic void update()
update
in interface IExperiment
update
in class Experiment
public void graphUpdate()
graphUpdate
in interface IExperiment
graphUpdate
in class Experiment
public void setParameters()
public void setDistribution()
public javax.swing.JTable getResultTable()
getResultTable
in interface IExperiment
getResultTable
in class Experiment