|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.Distribution edu.ucla.stat.SOCR.distributions.FiniteDistribution edu.ucla.stat.SOCR.distributions.DieDistribution
public class DieDistribution
Distribution for a standard 6-sided die
Field Summary | |
---|---|
static int |
FAIR
|
static int |
FLAT16
|
static int |
FLAT25
|
static int |
FLAT34
|
static int |
LEFT
|
static int |
RIGHT
|
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
Constructor Summary | |
---|---|
DieDistribution()
Default constructor: creates a new fair die distribution |
|
DieDistribution(double[] p)
General Constructor: creates a new die distribution with specified probabilities |
|
DieDistribution(int n)
Special constructor: creates a new die distribution of a special type |
Method Summary | |
---|---|
java.lang.String |
getOnlineDescription()
This method returns an online description of this distribution. |
void |
initialize()
used for some subclass to initialize before being used |
void |
setProbabilities(int n)
Specify probabilities of a special type |
void |
valueChanged()
|
void |
valueChanged(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class edu.ucla.stat.SOCR.distributions.FiniteDistribution |
---|
getDensity, getProbabilities, getProbability, setParameters, setProbabilities |
Methods inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMaxDensity, getMean, getMean, getMedian, getMGF, getMgfDomain, getName, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, getVariance, inverseCDF, logGamma, paramEstimate, perm, sampleMean, sampleVar, setApplet, setDomain, setDomain, setMGFDomain, setMGFDomain, setMGFParameters, setMGFParameters, setMGFParameters, setMGFParameters, setParameters, setPGFDomain, setPGFDomain, setPGFParameters, setPGFParameters, setPGFParameters, setPGFParameters, simulate, 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 |
Field Detail |
---|
public static final int FAIR
public static final int FLAT16
public static final int FLAT25
public static final int FLAT34
public static final int LEFT
public static final int RIGHT
Constructor Detail |
---|
public DieDistribution(double[] p)
public DieDistribution(int n)
public DieDistribution()
Method Detail |
---|
public void initialize()
Distribution
initialize
in class FiniteDistribution
public void valueChanged()
valueChanged
in class Distribution
public void valueChanged(java.util.Observable o, java.lang.Object arg)
valueChanged
in class FiniteDistribution
public void setProbabilities(int n)
public java.lang.String getOnlineDescription()
getOnlineDescription
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |