|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.distribution.AbstractWeightFunction
org.databene.benerator.distribution.function.DiscreteFunction
public class DiscreteFunction
Discrete function that is based on an array.
On invocation it rounds the function argument to the floor
and returns the arrays value of that index.
Created: 20.09.2006 19:04:00
Constructor Summary | |
---|---|
DiscreteFunction(double... weights)
|
Method Summary | |
---|---|
double |
value(double param)
|
Methods inherited from class org.databene.benerator.distribution.AbstractWeightFunction |
---|
applyTo, createNumberGenerator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscreteFunction(double... weights)
Method Detail |
---|
public double value(double param)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |