public function offsetGet($token)
    {
        if (isset($this->idf[$token])) {
            return $this->idf[$token];
        } else {
            return $this->logD;
        }
    }
public function offsetGet($token)
    {
        if (isset($this->idf[$token])) {
            return $this->idf[$token];
        } else {
            return $this->logD;
        }
    }
public function offsetGet ( $ token ) { if ( isset ( $ this -> idf [ $ token ] ) ) { return $ this -> idf [ $ token ] ; } else { return $ this -> logD ; } }
Implements the array access interface. Return the computed idf or
the logarithm of the count of the documents for a token we have not
seen before.

@param  string $token The token to return the idf for
@return float  The idf
Implements the array access interface . Return the computed idf or the logarithm of the count of the documents for a token we have not seen before .