'use strict';

/**
* Chi-squared distribution probability density function (PDF).
*
* @module @stdlib/math/base/dist/chisquare/pdf
*
* @example
* var pdf = require( '@stdlib/math/base/dist/chisquare/pdf' );
*
* var y = pdf( 2.0, 1.0 );
* // returns ~0.104
*
* var myPDF = pdf.factory( 6.0 );
* y = myPDF( 3.0 );
* // returns ~0.126
*/

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var pdf = require( './pdf.js' );
var factory = require( './factory.js' );


// MAIN //

setReadOnly( pdf, 'factory', factory );


// EXPORTS //

module.exports = pdf;

'use strict';

/**
* Chi-squared distribution probability density function (PDF).
*
* @module @stdlib/math/base/dist/chisquare/pdf
*
* @example
* var pdf = require( '@stdlib/math/base/dist/chisquare/pdf' );
*
* var y = pdf( 2.0, 1.0 );
* // returns ~0.104
*
* @example
* var factory = require( '@stdlib/math/base/dist/chisquare/pdf' ).factory;
*
* var pdf = factory( 6.0 );
*
* var y = pdf( 3.0 );
* // returns ~0.126
*/

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var pdf = require( './pdf.js' );
var factory = require( './factory.js' );


// MAIN //

setReadOnly( pdf, 'factory', factory );


// EXPORTS //

module.exports = pdf;

Update example