lib/deepset.js
function entropy( arr, path, sep ) {
	var len = arr.length,
		opts = {},
		dget,
		dset,
		v, i;
	if ( arguments.length > 2 ) {
		opts.sep = sep;
	}
	if ( len ) {
		dget = deepGet( path, opts );
		dset = deepSet( path, opts );
		for ( i = 0; i < len; i++ ) {
			v = dget( arr[ i ] );
			if ( typeof v === 'number' ) {
				dset( arr[i], ENTROPY ( v ) );
			} else {
				dset( arr[i], NaN );
			}
		}
	}
	return arr;
}
function entropy( arr, path, sep ) {
	var len = arr.length,
		opts = {},
		dget,
		dset,
		v, i;
	if ( arguments.length > 2 ) {
		opts.sep = sep;
	}
	if ( len ) {
		dget = deepGet( path, opts );
		dset = deepSet( path, opts );
		for ( i = 0; i < len; i++ ) {
			v = dget( arr[ i ] );
			if ( typeof v === 'number' ) {
				dset( arr[i], ENTROPY ( v ) );
			} else {
				dset( arr[i], NaN );
			}
		}
	}
	return arr;
}
function entropy ( arr , path , sep ) { var len = arr . length , opts = { } , dget , dset , v , i ; if ( arguments . length > 2 ) { opts . sep = sep ; } if ( len ) { dget = deepGet ( path , opts ) ; dset = deepSet ( path , opts ) ; for ( i = 0 ; i < len ; i ++ ) { v = dget ( arr [ i ] ) ; if ( typeof v === 'number' ) { dset ( arr [ i ] , ENTROPY ( v ) ) ; } else { dset ( arr [ i ] , NaN ) ; } } } return arr ; }
ENTROPY // 
FUNCTION: entropy( arr, path[, sep] )
Computes the distribution entropy and deep sets the input array.

@param {Array} arrays - input array
@param {String} path - key path used when deep getting and setting
@param {String} [sep] - key path separator
@returns {Array} input array
ENTROPY // FUNCTION : entropy ( arr path [ sep ] ) Computes the distribution entropy and deep sets the input array .