lib/deepset.js
/**
* FUNCTION: quantile( arr, v, path[, sep] )
*	Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each array element and sets the input array.
*
* @param {Array} arr - input array
* @param {Number} v - degrees of freedom
* @param {String} path - key path used when deep getting and setting
* @param {String} [sep] - key path separator
* @returns {Array} input array
*/
quantile( arr, v, path[, sep] )
Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each array element and sets the input array.
quantile ( arr v path [ sep ] ) Evaluates the quantile function for a Student t distribution with degrees of freedom ` v ` for each array element and sets the input array .
function quantile( x, v, path, sep ) {
	var len = x.length,
		opts = {},
		dget,
		dset,
		fcn,
		v, i;
	if ( arguments.length > 3 ) {
		opts.sep = sep;
	}
	if ( len ) {
		dget = deepGet( path, opts );
		dset = deepSet( path, opts );
		fcn = partial( v );
		for ( i = 0; i < len; i++ ) {
			v = dget( x[ i ] );
			if ( typeof v === 'number' ) {
				dset( x[i], fcn( v ) );
			} else {
				dset( x[i], NaN );
			}
		}
	}
	return x;
} 
function quantile ( x , v , path , sep ) { var len = x . length , opts = { } , dget , dset , fcn , v , i ; if ( arguments . length > 3 ) { opts . sep = sep ; } if ( len ) { dget = deepGet ( path , opts ) ; dset = deepSet ( path , opts ) ; fcn = partial ( v ) ; for ( i = 0 ; i < len ; i ++ ) { v = dget ( x [ i ] ) ; if ( typeof v === 'number' ) { dset ( x [ i ] , fcn ( v ) ) ; } else { dset ( x [ i ] , NaN ) ; } } } return x ; }
FUNCTION: quantile( arr, v, path[, sep] )
Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each array element and sets the input array.
FUNCTION : quantile ( arr v path [ sep ] ) Evaluates the quantile function for a Student t distribution with degrees of freedom ` v ` for each array element and sets the input array .
// end FUNCTION quantile()