function mgf( t ) {
		if ( isnan( t ) ) {
			return NaN;
		}
		if ( a < c ) {
			if ( c < b ) {
				return exp( c*t ) * ( ( (c-a)*phi2( (a-c)*t ) ) + ( (b-c)*phi2( (b-c)*t ) ) ) / ( b-a ); // eslint-disable-line max-len
			}
			return exp( c*t ) * phi2( ( a-c ) * t );
		}
		if ( c < b ) {
			return exp( c*t ) * phi2( ( b-c ) * t );
		}
		return exp( c*t );
	}
Evaluates the moment-generating function (MGF) for a triangular distribution.

@private
@param {number} t - input value
@returns {number} evaluated MGF

@example
var y = mgf( 0.5 );
// returns <number>