org.databene.benerator.distribution.function
Class GaussianFunction

java.lang.Object
  extended by org.databene.benerator.distribution.AbstractWeightFunction
      extended by org.databene.benerator.distribution.function.GaussianFunction
All Implemented Interfaces:
Distribution, Weight, WeightFunction

public class GaussianFunction
extends AbstractWeightFunction

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

GaussianFunction

public GaussianFunction(double average,
                        double deviation)
Fully Initializes the function

Method Detail

getAverage

public double getAverage()
returns the average


getDeviation

public double getDeviation()
returns the deviation


value

public double value(double param)
calculates the value


toString

public java.lang.String toString()
Creates a String representation of the function

Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.