public class NormalDistributionFunction2D extends Object implements Function2D, Serializable
Constructor and Description |
---|
NormalDistributionFunction2D(double mean,
double std)
Constructs a new normal distribution function.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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 Function2D
x
- the x-value.public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics