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

Field Summary
 
Fields inherited from class dragon.ir.search.smooth.AbstractSmoother
docFirstOptimal, querytermFirstOptimal, queryWeight, useLog
 
Constructor Summary
AbsoluteDiscountSmoother(IRCollection collection, double absoluteDiscount)
           
 
Method Summary
protected  double computeSmoothedProb(int termFreq)
           
 void setDoc(IRDoc doc)
          Set the current document for processing
 boolean setParameters(double[] params)
           
 void setQueryTerm(SimpleTermPredicate queryTerm)
          Set the current query term for processing
 
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
 

Constructor Detail

AbsoluteDiscountSmoother

public AbsoluteDiscountSmoother(IRCollection collection,
                                double absoluteDiscount)
Method Detail

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