public class PerFieldNormWeightingModel extends WeightingModel
Properties:
<ul>| Modifier and Type | Field and Description | 
|---|---|
| protected BasicModel | basicModel | 
| protected int | fieldCount | 
| protected double[] | fieldGlobalFrequencies | 
| protected Normalisation[] | fieldNormalisations | 
| protected double[] | fieldWeights | 
| protected String[] | params | 
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency| Constructor and Description | 
|---|
| PerFieldNormWeightingModel(Class<? extends BasicModel> _basicModel,
                          Class<? extends Normalisation> _normalisationModel)Constructs an instance of PerFieldNormWeightingModel | 
| PerFieldNormWeightingModel(String[] parameters)Constructs an instance of PerFieldNormWeightingModel | 
| Modifier and Type | Method and Description | 
|---|---|
| PerFieldNormWeightingModel | clone()Clone this weighting model | 
| String | getInfo()Returns the name of the model. | 
| void | prepare()prepare | 
| double | score(double tf,
     double docLength)This method provides the contract for implementing weighting models. | 
| double | score(Posting _p)Returns score | 
| void | setCollectionStatistics(CollectionStatistics _cs)Sets collection statistics | 
| void | setEntryStatistics(EntryStatistics _es)Sets entry statistics. | 
getOverflowed, getParameter, setKeyFrequency, setParameter, setRequestprotected String[] params
protected BasicModel basicModel
protected Normalisation[] fieldNormalisations
protected double[] fieldGlobalFrequencies
protected double[] fieldWeights
protected int fieldCount
public PerFieldNormWeightingModel(Class<? extends BasicModel> _basicModel, Class<? extends Normalisation> _normalisationModel) throws Exception
_basicModel - _normalisationModel - Exceptionpublic PerFieldNormWeightingModel clone()
WeightingModelclone in class WeightingModelpublic void prepare()
WeightingModelprepare in class WeightingModelpublic double score(Posting _p)
WeightingModelscore in class WeightingModelpublic void setCollectionStatistics(CollectionStatistics _cs)
WeightingModelsetCollectionStatistics in class WeightingModelpublic void setEntryStatistics(EntryStatistics _es)
setEntryStatistics in class WeightingModelpublic String getInfo()
getInfo in interface ModelgetInfo in class WeightingModelpublic double score(double tf,
           double docLength)
WeightingModelscore in class WeightingModeltf - The term frequency in the documentdocLength - the document's lengthTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow