public class FiniteDistribution extends Distribution
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name| Constructor and Description |
|---|
FiniteDistribution()
This special constructor creates a new uniform distribution on {1, 2,
..., 10}.
|
FiniteDistribution(double a,
double b,
double w)
Constructs the uniform distribuiton on the finite set of points
|
FiniteDistribution(double a,
double b,
double w,
double[] p)
Constructs a new finite distribution on a finite set of points with a
specified array of probabilities
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDensity(double x)
Density function
|
double[] |
getProbabilities()
This method gets the probability vector.
|
double |
getProbability(int i)
This method gets the probability for a specified index
|
void |
initialize()
used for some subclass to initialize before being used
|
void |
setParameters(double a,
double b,
double w,
double[] p)
This method sets the parameters: the domain and the probabilities.
|
void |
setProbabilities(double[] p)
Set the probabilities
|
void |
valueChanged(java.util.Observable o,
java.lang.Object arg) |
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMaxDensity, getMean, getMean, getMedian, getMGF, getMgfDomain, getName, getOnlineDescription, 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, valueChangedcreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetterspublic FiniteDistribution(double a,
double b,
double w,
double[] p)
public FiniteDistribution(double a,
double b,
double w)
public FiniteDistribution()
public void initialize()
Distributioninitialize in class Distributionpublic void valueChanged(java.util.Observable o,
java.lang.Object arg)
valueChanged in class Distributionpublic void setParameters(double a,
double b,
double w,
double[] p)
public double getDensity(double x)
getDensity in class Distributionpublic void setProbabilities(double[] p)
public double getProbability(int i)
public double[] getProbabilities()