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:

The namespace contains the following functions for calculating distribution properties:

The namespace contains a constructor function for creating a continuous uniform distribution object.

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 ) );