|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.distribution.univariate.LogNormalDistribution
public class LogNormalDistribution
A log-normal distribution is a probability distribution of a random variable whose logarithm is normally distributed. A variable might be modeled as log-normal if it can be thought of as the multiplicative product of many independent random variables each of which is positive.
| Constructor Summary | |
|---|---|
LogNormalDistribution(double logMu,
double logSigma)
Construct a log-normal distribution. |
|
| Method Summary | |
|---|---|
double |
cdf(double x)
Get the cumulative probability F(x) = Pr(X ≤ x). |
double |
density(double x)
The density function, which, if exists, is the derivative of F. |
double |
entropy()
Get the entropy of this distribution. |
double |
kurtosis()
Get the excess kurtosis of this distribution. |
double |
mean()
Get the mean of this distribution. |
double |
median()
Get the median of this distribution. |
double |
moment(double s)
The moment generating function is the expected value of etX. |
double |
quantile(double u)
Get the quantile, the inverse of the cumulative distribution function. |
double |
skew()
Get the skewness of this distribution. |
double |
variance()
Get the variance of this distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogNormalDistribution(double logMu,
double logSigma)
logMu - the log meanlogSigma - the log standard deviation| Method Detail |
|---|
public double mean()
ProbabilityDistribution
mean in interface ProbabilityDistributionpublic double median()
ProbabilityDistribution
median in interface ProbabilityDistributionpublic double variance()
ProbabilityDistribution
variance in interface ProbabilityDistributionpublic double skew()
ProbabilityDistribution
skew in interface ProbabilityDistributionpublic double kurtosis()
ProbabilityDistribution
kurtosis in interface ProbabilityDistributionpublic double entropy()
ProbabilityDistribution
entropy in interface ProbabilityDistributionpublic double cdf(double x)
ProbabilityDistribution
cdf in interface ProbabilityDistributionx - x
public double quantile(double u)
ProbabilityDistributionThis may not always exist.F-1(u) = x, such that Pr(X ≤ x) = u
quantile in interface ProbabilityDistributionu - u, a quantile
public double density(double x)
ProbabilityDistributionf(x) = dF(X) / dxThis may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density in interface ProbabilityDistributionx - x
public double moment(double s)
ProbabilityDistributionE(etX)This may not always exist.
moment in interface ProbabilityDistributions - x
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||