|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucla.stat.SOCR.core.SOCRValueSettable
edu.ucla.stat.SOCR.core.Distribution
edu.ucla.stat.SOCR.distributions.FiniteDistribution
public class FiniteDistribution
A basic discrete distribution on a finite set of points, with specified probabilities
| Field Summary |
|---|
| Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
|---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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)
|
| 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, 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, valueChanged |
| 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 |
| Constructor Detail |
|---|
public FiniteDistribution(double a,
double b,
double w,
double[] p)
public FiniteDistribution(double a,
double b,
double w)
public FiniteDistribution()
| Method Detail |
|---|
public void initialize()
Distribution
initialize in class Distribution
public void valueChanged(java.util.Observable o,
java.lang.Object arg)
valueChanged in class Distribution
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||