nl_tokens: ENTROPY // FUNCTION : entropy ( out arr accessor ) Computes the distribution entropy for parameters stored in an array using an accessor function .
pl_tokens: function entropy ( <mask> , arr , clbk ) { var len = arr . length , v , i ; for ( i = 0 ; i < len ; i ++ ) { v = clbk ( arr [ i ] , i ) ; if ( typeof v === 'number' ) { out [ i ] = ENTROPY ( v ) ; } else { out [ i ] = NaN ; } } return out ; }