public final class NormalDistributionApproximation extends AbstractDistributionApproximation
max, min, normal, numberOfPoints, points, range, step, weights
Constructor and Description |
---|
NormalDistributionApproximation(double mean,
double sd,
double min,
double max,
int numberOfPoints)
Creates a numerical approximation to a normal distribution with the specified mean and standard deviation.
|
NormalDistributionApproximation(double min,
double max,
int numberOfPoints)
Creates a numerical approximation to the standard normal distribution.
|
Modifier and Type | Method and Description |
---|---|
void |
setDensityAt(int index,
double value) |
void |
setPointAt(int index,
double value) |
java.lang.String |
toString() |
evaluate, getDensityAt, getMaximum, getMean, getMinimum, getNumberOfPoints, getPointAt, getPoints, getStandardDeviation, getVariance, setNormalPointsAndWeights, setUniformPointsAndWeights, standardize
public NormalDistributionApproximation(double min, double max, int numberOfPoints) throws java.lang.IllegalArgumentException
min
- minimum evaluation point.max
- maximum evaluation point.numberOfPoints
- number of evaluation points (and corresponding number of density values).java.lang.IllegalArgumentException
public NormalDistributionApproximation(double mean, double sd, double min, double max, int numberOfPoints) throws java.lang.IllegalArgumentException
mean
- mean of the normal distribution.sd
- standard deviation of the normal distribution.min
- minimum evaluation point.max
- maximum evaluation point.numberOfPoints
- number of evaluation points (and corresponding number of density values).java.lang.IllegalArgumentException