'use strict';

var randu = require( '@stdlib/math/base/random/randu' );
var quantile = require( './../lib' );

var mu;
var p;
var y;
var i;

for ( i = 0; i < 10; i++ ) {
	p = (randu() * 2.0) - 0.5;
	mu = (randu() * 10) - 5;
	y = quantile( p, mu );
	console.log( 'p: %d, µ: %d, Q(p;µ): %d', p, mu, y );
}

'use strict';

var randu = require( '@stdlib/math/base/random/randu' );
var quantile = require( './../lib' );

var mu;
var p;
var y;
var i;

for ( i = 0; i < 10; i++ ) {
	p = randu();
	mu = ( randu()*10.0 ) - 5.0;
	y = quantile( p, mu );
	console.log( 'p: %d, µ: %d, Q(p;µ): %d', p, mu, y );
}

Fix example and add decimal points
Fix example and add decimal points
