lib/stats.js
function() {
			// Get y coordinates
			var yCoords = this.pluck('y');

			// Do a semi-log transformation of the coordinates
			yCoords.map(function(num) {
				return Math.log(num);
			});

			// Get a new stats object to work with that has the transformed data
			var nums = this.clone().map(function(coord, index) {
				return {
					x: coord.x,
					y: yCoords.get(index)
				};
			});

			// Calculate the linear regression for the linearized data
			var linReg = nums.linReg();

			// Calculate the coefficient for the exponential equation
			var coefficient = Math.pow(Math.E, linReg.yIntercept);

			// Calculate the base for the exponential equation
			var base = Math.pow(Math.E, linReg.slope);

			return {
				coefficient: coefficient,
				base: base,
				r: linReg.r
			};
		}
function() {
			// Get y coordinates
			var yCoords = this.pluck('y');

			// Do a semi-log transformation of the coordinates
			yCoords.map(function(num) {
				return Math.log(num);
			});

			// Get a new stats object to work with that has the transformed data
			var nums = this.clone().map(function(coord, index) {
				return {
					x: coord.x,
					y: yCoords.get(index)
				};
			});

			// Calculate the linear regression for the linearized data
			var linReg = nums.linReg();

			// Calculate the coefficient for the exponential equation
			var coefficient = Math.pow(Math.E, linReg.yIntercept);

			// Calculate the base for the exponential equation
			var base = Math.pow(Math.E, linReg.slope);

			return {
				coefficient: coefficient,
				base: base,
				r: linReg.r
			};
		}
function ( ) { // Get y coordinates
 var yCoords = this . pluck ( 'y' ) ; // Do a semi-log transformation of the coordinates
 yCoords . map ( function ( num ) { return Math . log ( num ) ; } ) ; // Get a new stats object to work with that has the transformed data
 var nums = this . clone ( ) . map ( function ( coord , index ) { return { x : coord . x , y : yCoords . get ( index ) } ; } ) ; // Calculate the linear regression for the linearized data
 var linReg = nums . linReg ( ) ; // Calculate the coefficient for the exponential equation
 var coefficient = Math . pow ( Math . E , linReg . yIntercept ) ; // Calculate the base for the exponential equation
 var base = Math . pow ( Math . E , linReg . slope ) ; return { coefficient : coefficient , base : base , r : linReg . r } ; }
Calculates the exponential regression line for the data set.  Returns an object with the coefficient, base, and correlation coefficient for the linearized data.
Calculates the exponential regression line for the data set . Returns an object with the coefficient base and correlation coefficient for the linearized data .