|
||
---|---|---|
.. | ||
cdf | ||
ctor | ||
docs/types | ||
entropy | ||
kurtosis | ||
lib | ||
logpdf | ||
mean | ||
median | ||
mode | ||
quantile | ||
skewness | ||
stdev | ||
variance | ||
package.json | ||
README.md |
Lognormal
Lognormal distribution.
Usage
var lognormal = require( '@stdlib/stats/base/dists/lognormal' );
lognormal
Lognormal distribution.
var dist = lognormal;
// returns {...}
The namespace contains the following distribution functions:
cdf( x, mu, sigma )
: lognormal distribution cumulative distribution function.logpdf( x, mu, sigma )
: evaluate the natural logarithm of the probability density function (PDF) for a lognormal distribution.pdf( x, mu, sigma )
: lognormal distribution probability density function (PDF).quantile( p, mu, sigma )
: lognormal distribution quantile function.
The namespace contains the following functions for calculating distribution properties:
entropy( mu, sigma )
: lognormal distribution differential entropy.kurtosis( mu, sigma )
: lognormal distribution excess kurtosis.mean( mu, sigma )
: lognormal distribution expected value.median( mu, sigma )
: lognormal distribution median.mode( mu, sigma )
: lognormal distribution mode.skewness( mu, sigma )
: lognormal distribution skewness.stdev( mu, sigma )
: lognormal distribution standard deviation.variance( mu, sigma )
: lognormal distribution variance.
The namespace contains a constructor function for creating a lognormal distribution object.
LogNormal( [mu, sigma] )
: lognormal distribution constructor.
var LogNormal = require( '@stdlib/stats/base/dists/lognormal' ).LogNormal;
var dist = new LogNormal( 2.0, 4.0 );
var y = dist.cdf( 0.5 );
// returns ~0.25
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var lognormal = require( '@stdlib/stats/base/dists/lognormal' );
console.log( objectKeys( lognormal ) );