|
||
---|---|---|
.. | ||
cdf | ||
ctor | ||
docs/types | ||
entropy | ||
kurtosis | ||
lib | ||
logcdf | ||
logpdf | ||
mean | ||
median | ||
mgf | ||
quantile | ||
skewness | ||
stdev | ||
variance | ||
package.json | ||
README.md |
Continuous Uniform
Continuous uniform distribution.
Usage
var uniform = require( '@stdlib/stats/base/dists/uniform' );
uniform
Continuous uniform distribution.
var dist = uniform;
// returns {...}
The namespace contains the following distribution functions:
cdf( x, a, b )
: uniform distribution cumulative distribution function.logcdf( x, a, b )
: uniform distribution logarithm of cumulative distribution function.logpdf( x, a, b )
: uniform distribution logarithm of probability density function (PDF).mgf( t, a, b )
: uniform distribution moment-generating function (MGF).pdf( x, a, b )
: uniform distribution probability density function (PDF).quantile( p, a, b )
: uniform distribution quantile function.
The namespace contains the following functions for calculating distribution properties:
entropy( a, b )
: uniform distribution differential entropy.kurtosis( a, b )
: uniform distribution excess kurtosis.mean( a, b )
: uniform distribution expected value.median( a, b )
: uniform distribution median.skewness( a, b )
: uniform distribution skewness.stdev( a, b )
: uniform distribution standard deviation.variance( a, b )
: uniform distribution variance.
The namespace contains a constructor function for creating a continuous uniform distribution object.
Uniform( [a, b] )
: uniform distribution constructor.
var Uniform = require( '@stdlib/stats/base/dists/uniform' ).Uniform;
var dist = new Uniform( 2.0, 4.0 );
var y = dist.cdf( 2.5 );
// returns 0.25
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var uniform = require( '@stdlib/stats/base/dists/uniform' );
console.log( objectKeys( uniform ) );