dragon.ir.search.smooth
Class AbstractMixtureWeightEM
java.lang.Object
|
+--dragon.ir.search.smooth.AbstractMixtureWeightEM
- Direct Known Subclasses:
- DocTransMixtureWeightEM
- public abstract class AbstractMixtureWeightEM
- extends java.lang.Object
Abstract EM Algorithm for Mixture Weights Estimation
Copyright: Copyright (c) 2005
Company: IST, Drexel University
- Version:
- 1.0
- Author:
- Davis Zhou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indexReader
protected IndexReader indexReader
iterationNum
protected int iterationNum
componentNum
protected int componentNum
AbstractMixtureWeightEM
public AbstractMixtureWeightEM(IndexReader indexReader,
int componentNum,
int iterationNum,
boolean docFirst)
setInitialParameters
protected abstract void setInitialParameters(double[] arrCoefficient,
IRDoc[] arrDoc)
init
protected abstract void init(RelSimpleQuery query)
setDoc
protected abstract void setDoc(IRDoc doc)
setQueryTerm
protected abstract void setQueryTerm(SimpleTermPredicate queryTerm)
getComponentValue
protected abstract void getComponentValue(SimpleTermPredicate queryTerm,
int freq,
double[] componentProbs)
getComponentValue
protected abstract void getComponentValue(IRDoc curDoc,
int freq,
double[] componentProbs)
setStatusOut
public void setStatusOut(java.io.PrintWriter out)
estimateModelCoefficient
public double[] estimateModelCoefficient(RelSimpleQuery query)
getDocNum
protected int getDocNum()
getDoc
protected IRDoc getDoc(int seq)