| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uah.math.distributions.Distribution
edu.uah.math.distributions.CircleDistribution
public class CircleDistribution
This class models the crcle distribution with a specified radius. This is the distribution of X and Y when (X, Y) has the uniform distribution on a circular region centered at the origin, with the given radius.
| Field Summary | 
|---|
| Fields inherited from class edu.uah.math.distributions.Distribution | 
|---|
| CONTINUOUS, DISCRETE, MIXED | 
| Constructor Summary | |
|---|---|
| CircleDistribution()This default constructor creates a new circle distribution with radius 1. | |
| CircleDistribution(double r)This general constructor creates a new circle distribution with a specified radius. | |
| Method Summary | |
|---|---|
|  double | getCDF(double x)This method compute the cumulative distribution functionin in terms of the radius parameter. | 
|  double | getDensity(double x)This method computes the probability density function, | 
|  double | getMaxDensity()This method computes the maximum value of the density function, which is the value at 0. | 
|  double | getMean()This method computes the mean in terms of the radius parameter. | 
|  double | getMedian()This method computes the median which is 0 regardless of the radius parameter. | 
|  double | getQuantile(double p)This method computes the quantile function in terms of the radius parameter. | 
|  double | getRadius()This method returns the radius parameter. | 
|  double | getVariance()This method computes the variance in terms of the radius parameter. | 
|  void | setRadius(double r)This method sets the radius parameter and computes the domain of the distribution. | 
|  double | simulate()This method simulates a value from the distribution. | 
|  java.lang.String | toString()This method returns a string that gives the name of the distribution and the values of the parameters. | 
| Methods inherited from class edu.uah.math.distributions.Distribution | 
|---|
| getDomain, getFailureRate, getMGF, getMoment, getMoment, getPGF, getSD, getType, setDomain, setDomain | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public CircleDistribution(double r)
r - the radiuspublic CircleDistribution()
| Method Detail | 
|---|
public void setRadius(double r)
r - the radiuspublic double getDensity(double x)
getDensity in class Distributionx - a number in the domain of the distribution
public double getMaxDensity()
getMaxDensity in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double getMedian()
getMedian in class Distributionpublic double getRadius()
public double simulate()
simulate in class Distributionpublic double getCDF(double x)
getCDF in class Distributionx - a number in the domain of the distribution
public double getQuantile(double p)
getQuantile in class Distributionp - a probability in (0, 1)
public java.lang.String toString()
toString in class Distribution| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||