'use strict';

/**
* Degenerate distribution cumulative distribution function (CDF).
*
* @module @stdlib/math/base/dist/degenerate/cdf
*
* @example
* var cdf = require( '@stdlib/math/base/dist/degenerate/cdf' );
*
* var y = cdf( 2.0, 5.0 );
* // returns 0.0
*
* var myCDF = cdf.factory( 5.0 );
* y = myCDF( 3.0 );
* // returns 0.0
*
* y = myCDF( 6.0 );
* // returns 1.0
*/

// MODULES //

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


// MAIN //

setReadOnly( cdf, 'factory', factory );


// EXPORTS //

module.exports = cdf;

@@ -259,51 +259,138 @@
 *%0A* 
-var myCDF = cdf.factory( 5.0 );%0A* y = myCDF
+@example%0A* var factory = require( '@stdlib/math/base/dist/degenerate/cdf' ).factory;%0A*%0A* var cdf = factory( 5.0 );%0A*%0A* var y = cdf
 ( 3.
@@ -423,13 +423,11 @@
 y = 
-myCDF
+cdf
 ( 6.

Update example