text: 'use strict';
  
  // MODULES //
  
  var partial = require( './partial.js' );
  
  
  // PDF //
  
  /**
  * FUNCTION: pdf( out, matrix, a, b, c )
  *	Evaluates the probability density function (PDF) for a Triangular distribution with lower limit `a` and upper limit `b` and mode `c` for each matrix element.
  *
  * @param {Matrix} out - output matrix
  * @param {Matrix} arr - input matrix
  * @param {Number} a - lower limit
  * @param {Number} b - upper limit
  * @param {Number} c - mode
  * @returns {Matrix} output matrix
  */
  function pdf( y, x, a, b, c ) {
  	var len = x.length,
  		fcn,
  		i;
  	if ( y.length !== len ) {
  		throw new Error( 'pdf()::invalid input arguments. Input and output matrices must be the same length.' );
  	}
  	fcn = partial( a, b, c );
  	for ( i = 0; i < len; i++ ) {
  		y.data[ i ] = fcn( x.data[ i ] );
  	}
  	return y;
  } // end FUNCTION pdf()
  
  
  // EXPORTS //
  
  module.exports = pdf;
  