dragon.ir.search.smooth
Class AbsoluteDiscountSmoother
java.lang.Object
|
+--dragon.ir.search.smooth.AbstractSmoother
|
+--dragon.ir.search.smooth.AbsoluteDiscountSmoother
- All Implemented Interfaces:
- Smoother
- public class AbsoluteDiscountSmoother
- extends AbstractSmoother
Absolute Discount Smoother
Copyright: Copyright (c) 2005
Company: IST, Drexel University
- Version:
- 1.0
- Author:
- Davis Zhou
| Methods inherited from class dragon.ir.search.smooth.AbstractSmoother |
getLogLikelihoodOption, getProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, getSmoothedProb, isDocFirstOptimal, isQueryTermFirstOptimal, setLogLikelihoodOption |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbsoluteDiscountSmoother
public AbsoluteDiscountSmoother(IRCollection collection,
double absoluteDiscount)
setParameters
public boolean setParameters(double[] params)
- Parameters:
params - paramteres for the current smoother
- Returns:
- true if successful
setQueryTerm
public void setQueryTerm(SimpleTermPredicate queryTerm)
- Description copied from interface:
Smoother
- Set the current query term for processing
- Parameters:
queryTerm - the query term
setDoc
public void setDoc(IRDoc doc)
- Description copied from interface:
Smoother
- Set the current document for processing
- Parameters:
doc - the document
computeSmoothedProb
protected double computeSmoothedProb(int termFreq)
- Specified by:
computeSmoothedProb in class AbstractSmoother