src/Analysis/FreqDist.php
/**
     * Internal function for summarizing all the data into a key value store
     * @param array $tokens The set of tokens passed into the constructor
     */
Internal function for summarizing all the data into a key value store
@param array $tokens The set of tokens passed into the constructor
Internal function for summarizing all the data into a key value store @param array $tokens The set of tokens passed into the constructor
protected function preCompute(array $tokens)
    {
        $this->keyValues = array_count_values($tokens);
        arsort($this->keyValues);        
    }
protected function preCompute ( array $ tokens ) { $ this -> keyValues = array_count_values ( $ tokens ) ; arsort ( $ this -> keyValues ) ; }
Internal function for summarizing all the data into a key value store
 @param array $tokens The set of tokens passed into the constructor
Internal function for summarizing all the data into a key value store @param array $tokens The set of tokens passed into the constructor
//count all the tokens up and put them in a key value store