public class DieDistribution extends FiniteDistribution
Modifier and Type | Field and Description |
---|---|
static int |
FAIR |
static int |
FLAT16 |
static int |
FLAT25 |
static int |
FLAT34 |
static int |
LEFT |
static int |
RIGHT |
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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) |
getDensity, getProbabilities, getProbability, setParameters, setProbabilities
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
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
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
public DieDistribution(double[] p)
public DieDistribution(int n)
public DieDistribution()
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