lib/matrix.js
/**
* FUNCTION: quantile( out, matrix, v )
*	Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each matrix element.
*
* @param {Matrix} out - output matrix
* @param {Matrix} arr - input matrix
* @param {Number} v - degrees of freedom
* @returns {Matrix} output matrix
*/
quantile( out, matrix, v )
Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each matrix element.
quantile ( out matrix v ) Evaluates the quantile function for a Student t distribution with degrees of freedom ` v ` for each matrix element .
function quantile( y, x, v ) {
	var len = x.length,
		fcn,
		i;
	if ( y.length !== len ) {
		throw new Error( 'quantile()::invalid input arguments. Input and output matrices must be the same length.' );
	}
	fcn = partial( v );
	for ( i = 0; i < len; i++ ) {
		y.data[ i ] = fcn( x.data[ i ] );
	}
	return y;
} 
function quantile ( y , x , v ) { var len = x . length , fcn , i ; if ( y . length !== len ) { throw new Error ( 'quantile()::invalid input arguments. Input and output matrices must be the same length.' ) ; } fcn = partial ( v ) ; for ( i = 0 ; i < len ; i ++ ) { y . data [ i ] = fcn ( x . data [ i ] ) ; } return y ; }
FUNCTION: quantile( out, matrix, v )
Evaluates the quantile function for a Student t distribution with degrees of freedom `v` for each matrix element.
FUNCTION : quantile ( out matrix v ) Evaluates the quantile function for a Student t distribution with degrees of freedom ` v ` for each matrix element .
// end FUNCTION quantile()