|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.util.DistributionFactory
public class DistributionFactory
A class to easily generate statistical distributions for the AgentDistribution class. These distributions are from the colt library. All of the distributions require a set of doubles. For information on these distributions and the parameter lists, see the colt documentation.
Some examples include:
chi-squared : double degrees of freedom pareto: double scale, double shape poisson: double mean uniform: double min, double max
Note: The binomial distribution cannot be created from this Factory.
| Constructor Summary | |
|---|---|
DistributionFactory()
|
|
| Method Summary | |
|---|---|
cern.jet.random.AbstractDistribution |
createDistribution(java.lang.String distClassName,
double[] params)
Creates an Abstract Distribution. |
static cern.jet.random.AbstractDistribution |
staticCreateDistribution(java.lang.String distClass,
double[] params)
Statically creates an Abstract Distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributionFactory()
| Method Detail |
|---|
public cern.jet.random.AbstractDistribution createDistribution(java.lang.String distClassName,
double[] params)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static cern.jet.random.AbstractDistribution staticCreateDistribution(java.lang.String distClass,
double[] params)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||