public class LogNormalDistribution extends AbstractDistribution
| Constructor and Description |
|---|
LogNormalDistribution(double[] data)
Constructor.
|
LogNormalDistribution(double mu,
double sigma)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cdf(double x)
Cumulative distribution function.
|
double |
entropy()
Shannon entropy of the distribution.
|
double |
getMu()
Returns the parameter mu, which is the mean of normal distribution log(X).
|
double |
getSigma()
Returns the parameter sigma, which is the standard deviation of normal distribution log(X).
|
double |
logp(double x)
The density at x in log scale, which may prevents the underflow problem.
|
double |
mean()
The mean of distribution.
|
int |
npara()
The number of parameters of the distribution.
|
double |
p(double x)
The probability density function for continuous distribution
or probability mass function for discrete distribution at x.
|
double |
quantile(double p)
The quantile, the probability to the left of quantile is p.
|
double |
rand()
Generates a random number following this distribution.
|
double |
sd()
The standard deviation of distribution.
|
java.lang.String |
toString() |
double |
var()
The variance of distribution.
|
inverseTransformSampling, likelihood, logLikelihood, quantile, quantile, rejectionpublic LogNormalDistribution(double mu,
double sigma)
public LogNormalDistribution(double[] data)
public double getMu()
public double getSigma()
public int npara()
Distributionpublic double mean()
Distributionpublic double var()
Distributionpublic double sd()
Distributionpublic double entropy()
Distributionpublic java.lang.String toString()
toString in class java.lang.Objectpublic double rand()
Distributionpublic double p(double x)
Distributionpublic double logp(double x)
Distributionpublic double cdf(double x)
Distributionpublic double quantile(double p)
Distribution