public class PowerlawDistribution extends COLTContinuousDistribution
generatorname| Constructor and Description |
|---|
PowerlawDistribution(java.lang.String name,
double alpha,
double cut)
Generates a wrapper for the power law distribution as implemented in the COLT library
|
| Modifier and Type | Method and Description |
|---|---|
double |
draw()
Draw a value from the distribution according to the distribution at hand
|
double |
getAlpha() |
double |
getCut() |
getName, toStringpublic PowerlawDistribution(java.lang.String name,
double alpha,
double cut)
throws java.lang.IllegalArgumentException
name - Name of the power law distribution (will be prefixed by PowerlawDistribution_)alpha - The exponent of the power law distributioncut - The cut-off of the corresponding distribution (as realized in the COLT library). No values larger than this will be returned.java.lang.IllegalArgumentException - Will be thrown when cut off is <= 0public double getAlpha()
public double getCut()
public double draw()
UnivariateDistributiondraw in class UnivariateDistribution