|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.DiscreteProbabilityDistribution
org.statcato.statistics.GeometricProbabilityDistribution
public class GeometricProbabilityDistribution
Geometric probability distribution class.
Type I: models the number of trials needed to produce the first success
Type II: model the number of failures before the first success
Field Summary | |
---|---|
static int |
TYPEI
models the number of trials needed to produce the first success |
static int |
TYPEII
models the number of failures before the first success |
Constructor Summary | |
---|---|
GeometricProbabilityDistribution(double p,
int type)
Constructs a geometric probability distribution with the given success probability and type. |
Method Summary | |
---|---|
double |
cumulativeProbability(double x)
Returns the cumulative probabililty up to x. |
double |
density(double x)
Returns the density of the distribution at x. |
java.lang.Double |
inverseCumulativeProbability(double area)
Returns the inverse cumulative probability. |
Methods inherited from class org.statcato.statistics.DiscreteProbabilityDistribution |
---|
inverseCumulativeProbability |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int TYPEI
public static int TYPEII
Constructor Detail |
---|
public GeometricProbabilityDistribution(double p, int type)
p
- success probabilitytype
- TYPEI (models the number of trials needed to produce the first success)
or TYPEII (model the number of failures before the first success)Method Detail |
---|
public double density(double x)
density
in class DiscreteProbabilityDistribution
x
- an integer
public double cumulativeProbability(double x)
cumulativeProbability
in class DiscreteProbabilityDistribution
x
-
public java.lang.Double inverseCumulativeProbability(double area)
area
- cumulative probability
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |