| 
 | ||||||||||
| 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.Convolution
public class Convolution
This class creates the n-fold convolution of a given distribution
| Field Summary | 
|---|
| Fields inherited from class edu.ucla.stat.SOCR.core.Distribution | 
|---|
| applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name | 
| Constructor Summary | |
|---|---|
| Convolution()This defalut constructor creates a new convolution distribution corrrepsonding to the uniform distribution on (0,1), with convolution power 5. | |
| Convolution(Distribution d,
            int n)This general constructor: creates a new convolution distribution corresponding to a specified distribution and convolution power | |
| Method Summary | |
|---|---|
|  double | getDensity(double x)Density function | 
|  Distribution | getDistribution()This method returns the distribution. | 
|  double | getMean()Mean | 
|  int | getPower()This method returns the convolution power. | 
|  double | getVariance()Variance | 
|  void | setDistribution(Distribution d)This method sets the distribution. | 
|  void | setParameters(Distribution d,
              int n)This method sets the parameters: the distribution and convolution power. | 
|  void | setPower(int n)This method sets the convolution power. | 
|  double | simulate()Simulate a value from the distribution | 
| 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 Convolution(Distribution d,
                   int n)
public Convolution()
| Method Detail | 
|---|
public void setParameters(Distribution d,
                          int n)
public double getDensity(double x)
getDensity in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double simulate()
simulate in class Distributionpublic void setPower(int n)
public int getPower()
public void setDistribution(Distribution d)
public Distribution getDistribution()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||