Search/Lucene/Search/Similarity/Default.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Search_Lucene  
Subpackage
Search  
Version
$Id$  

\Zend_Search_Lucene_Search_Similarity_Default

Package: Zend_Search_Lucene\Search
Parent(s)
\Zend_Search_Lucene_Search_Similarity
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpubliccoord(integer $overlap, integer $maxOverlap) : float

Implemented as 'overlap/maxOverlap'.

Parameters
NameTypeDescription
$overlapinteger
$maxOverlapinteger
Returns
TypeDescription
float
methodpublicidfFreq(integer $docFreq, integer $numDocs) : float

Implemented as 'log(numDocs/(docFreq+1)) + 1'.

Parameters
NameTypeDescription
$docFreqinteger
$numDocsinteger
Returns
TypeDescription
float
methodpubliclengthNorm(string $fieldName, integer $numTerms) : float

Implemented as '1/sqrt(numTerms)'.

Parameters
NameTypeDescription
$fieldNamestring
$numTermsinteger
Returns
TypeDescription
float
methodpublicqueryNorm(float $sumOfSquaredWeights) : float

Implemented as '1/sqrt(sumOfSquaredWeights)'.

Parameters
NameTypeDescription
$sumOfSquaredWeightsfloat
Returns
TypeDescription
float
methodpublicsloppyFreq(integer $distance) : float

Implemented as '1/(distance + 1)'.

Parameters
NameTypeDescription
$distanceinteger
Returns
TypeDescription
float
methodpublictf(float $freq) : float

Implemented as 'sqrt(freq)'.

Parameters
NameTypeDescription
$freqfloat
Returns
TypeDescription
float
Documentation was generated by phpDocumentor 2.2.0 .