private function _calculateMaxDistance($prefixLength, $termLength, $length)
    {
        $this->_maxDistances[$length] = (int) ((1 - $this->_minimumSimilarity)*(min($termLength, $length) + $prefixLength));
        return $this->_maxDistances[$length];
    }
private function _calculateMaxDistance($prefixLength, $termLength, $length)
    {
        $this->_maxDistances[$length] = (int) ((1 - $this->_minimumSimilarity)*(min($termLength, $length) + $prefixLength));
        return $this->_maxDistances[$length];
    }
private function _calculateMaxDistance ( $ prefixLength , $ termLength , $ length ) { $ this -> _maxDistances [ $ length ] = ( int ) ( ( 1 - $ this -> _minimumSimilarity ) * ( min ( $ termLength , $ length ) + $ prefixLength ) ) ; return $ this -> _maxDistances [ $ length ] ; }
Calculate maximum distance for specified word length

@param  integer $prefixLength
@param  integer $termLength
@param  integer $length
@return integer
Calculate maximum distance for specified word length