public class NormalDistributionFunction2D extends java.lang.Object implements Function2D, java.io.Serializable
| Constructor and Description |
|---|
NormalDistributionFunction2D(double mean,
double std)
Constructs a new normal distribution function.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this function for equality with an arbitrary object.
|
double |
getMean()
Returns the mean for the function.
|
double |
getStandardDeviation()
Returns the standard deviation for the function.
|
double |
getValue(double x)
Returns the function value.
|
int |
hashCode()
Returns a hash code for this instance.
|
public NormalDistributionFunction2D(double mean, double std)
mean - the mean.std - the standard deviation (> 0).public double getMean()
public double getStandardDeviation()
public double getValue(double x)
getValue in interface Function2Dx - the x-value.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Object