Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

coord(
integer $overlap, integer $maxOverlap
)
:
float
Implemented as 'overlap/maxOverlap'.
Name | Type | Description |
---|---|---|
$overlap | integer | |
$maxOverlap | integer |
Type | Description |
---|---|
float |

idfFreq(
integer $docFreq, integer $numDocs
)
:
float
Implemented as 'log(numDocs/(docFreq+1)) + 1'.
Name | Type | Description |
---|---|---|
$docFreq | integer | |
$numDocs | integer |
Type | Description |
---|---|
float |

lengthNorm(
string $fieldName, integer $numTerms
)
:
float
Implemented as '1/sqrt(numTerms)'.
Name | Type | Description |
---|---|---|
$fieldName | string | |
$numTerms | integer |
Type | Description |
---|---|
float |

queryNorm(
float $sumOfSquaredWeights
)
:
float
Implemented as '1/sqrt(sumOfSquaredWeights)'.
Name | Type | Description |
---|---|---|
$sumOfSquaredWeights | float |
Type | Description |
---|---|
float |

sloppyFreq(
integer $distance
)
:
float
Implemented as '1/(distance + 1)'.
Name | Type | Description |
---|---|---|
$distance | integer |
Type | Description |
---|---|
float |