src/NGrams/Statistic3D.php
/**
    * Calculate the Pointwise mutual information
    * @param int $n
    * @param int $m
    * @return float Return the calculated value
    */
Calculate the Pointwise mutual information
@param int $n
@param int $m
@return float Return the calculated value
Calculate the Pointwise mutual information @param int $n @param int $m @return float Return the calculated value
static public function computePMI($n, $m)
    {
        $val = $n/$m;
        return log($val);
    }
static public function computePMI ( $ n , $ m ) { $ val = $ n / $ m ; return log ( $ val ) ; }
Calculate the Pointwise mutual information
 @param int $n
 @param int $m
 @return float Return the calculated value
Calculate the Pointwise mutual information @param int $n @param int $m @return float Return the calculated value