Cauchy

Cauchy distribution.

Usage

var cauchy = require( '@stdlib/stats/base/dists/cauchy' );

cauchy

Cauchy distribution.

var dist = cauchy;
// 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 Cauchy distribution object.

var Cauchy = require( '@stdlib/stats/base/dists/cauchy' ).Cauchy;

var dist = new Cauchy( 2.0, 4.0 );

var median = dist.median;
// returns 2.0

Examples

var objectKeys = require( '@stdlib/utils/keys' );
var cauchy = require( '@stdlib/stats/base/dists/cauchy' );

console.log( objectKeys( cauchy ) );