code: function quantiles( vector, num ) {
  		var numValues = vector.length,
  			qValues = new Array( num+1 ),
  			vec, id, value;
  
  		// Create a copy of the input vector:
  		vec = vector.slice();
  
  		// Sort the input vector:
  		vec.sort( function ( a, b ) {
  			return a - b;
  		});
  
  		// 0th quantile is the min:
  		qValues[ 0 ] = vec[ 0 ];
  
  		// Max defines the quantile upper bound:
  		qValues[ num ] = vec[ numValues-1 ];
  
  		// Get the quantiles...
  		for ( var i = 1; i < num; i++ ) {
  
  			// Calculate the vector index marking the quantile:
  			id = ( numValues * i / num ) - 1;
  
  			// Is the index an integer?
  			if ( id === parseInt( id, 10 ) ) {
  				// Value is the average between the value at id and id+1:
  				value = ( vec[ id ] + vec[ id+1 ] ) / 2.0;
  			} else {
  				// Round up to the next index:
  				id = Math.ceil( id );
  				value = vec[ id ];
  			}
  			qValues[ i ] = value;
  		} // end FOR i
  		return qValues;
  	}
docs: FUNCTIONS // 
  FUNCTIONS: quantiles( vector, num )
  Computes quantiles for a 1d dataset array.
  
  @private
  @param {array} vector - 1d array
  @param {number} num - number of quantiles
  @returns {array} quantiles