|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.sampling.discrete.DiscreteSampling<X>
public class DiscreteSampling<X>
This class samples from a discrete probability distribution.
| Constructor Summary | |
|---|---|
DiscreteSampling(java.lang.Iterable<X> collection,
ProbabilityMassFunction<X> pmf)
|
|
| Method Summary | |
|---|---|
X |
getSample(double cm)
Get a sample from the probability distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteSampling(java.lang.Iterable<X> collection,
ProbabilityMassFunction<X> pmf)
| Method Detail |
|---|
public X getSample(double cm)
cm - cumulative probability mass
null if none exists for cm
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||