|
||||||||||
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.GaussianFunction
public class GaussianFunction
Gaussian Function. 1/(deviation*sqrt(2PI)) * e^(-(x - average)^2/(4 * deviation^2)).
Created: 10.06.2006 05:37:56
Constructor Summary | |
---|---|
GaussianFunction(double average,
double deviation)
Fully Initializes the function |
Method Summary | |
---|---|
double |
getAverage()
returns the average |
double |
getDeviation()
returns the deviation |
java.lang.String |
toString()
Creates a String representation of the function |
double |
value(double param)
calculates the value |
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, wait, wait, wait |
Constructor Detail |
---|
public GaussianFunction(double average, double deviation)
Method Detail |
---|
public double getAverage()
public double getDeviation()
public double value(double param)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |