public class ItemParamPriorLogNormal extends java.lang.Object implements ItemParamPrior
| Constructor and Description |
|---|
ItemParamPriorLogNormal()
Constructor for the standard lognormal distribution
|
ItemParamPriorLogNormal(double[] param)
Constructor takes an array as the input parameters.
|
ItemParamPriorLogNormal(double mean,
double sd)
Constructor taking the mean and standard deviation as arguments.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
distributionName() |
int |
getNumberOfParameters() |
double |
logDensity(double p)
Only compute part of the log of the density that depends on the parameter
|
double |
logDensityDeriv1(double p)
First derivative of log density.
|
double |
logDensityDeriv2(double p)
Second derivative of log density.
|
double |
nearestNonZero(double x)
If density of x is zero (x <= 0) then return small slightly greater than zero that has a non-zero density
|
boolean |
zeroDensity(double p)
Returns true if density at p is zero
|
public ItemParamPriorLogNormal()
public ItemParamPriorLogNormal(double[] param)
param - an array with the meanLog as the first argument and sdLog as the second.public ItemParamPriorLogNormal(double mean,
double sd)
mean - mean on the logarithmic scale (i.e. meanLog)sd - standard deviation on the logarithmic scale (i.e. sdLog)public boolean zeroDensity(double p)
zeroDensity in interface ItemParamPriorp - public double nearestNonZero(double x)
nearestNonZero in interface ItemParamPriorx - public double logDensity(double p)
logDensity in interface ItemParamPriorp - Argument of log density function (an item parameter value)public double logDensityDeriv1(double p)
logDensityDeriv1 in interface ItemParamPriorp - public double logDensityDeriv2(double p)
logDensityDeriv2 in interface ItemParamPriorp - public int getNumberOfParameters()
getNumberOfParameters in interface ItemParamPriorpublic java.lang.String distributionName()
distributionName in interface ItemParamPrior