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

Field Summary
protected  int componentNum
           
protected  IndexReader indexReader
           
protected  int iterationNum
           
 
Constructor Summary
AbstractMixtureWeightEM(IndexReader indexReader, int componentNum, int iterationNum, boolean docFirst)
           
 
Method Summary
 double[] estimateModelCoefficient(RelSimpleQuery query)
           
protected abstract  void getComponentValue(IRDoc curDoc, int freq, double[] componentProbs)
           
protected abstract  void getComponentValue(SimpleTermPredicate queryTerm, int freq, double[] componentProbs)
           
protected  IRDoc getDoc(int seq)
           
protected  int getDocNum()
           
protected abstract  void init(RelSimpleQuery query)
           
protected abstract  void setDoc(IRDoc doc)
           
protected abstract  void setInitialParameters(double[] arrCoefficient, IRDoc[] arrDoc)
           
protected abstract  void setQueryTerm(SimpleTermPredicate queryTerm)
           
 void setStatusOut(java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexReader

protected IndexReader indexReader

iterationNum

protected int iterationNum

componentNum

protected int componentNum
Constructor Detail

AbstractMixtureWeightEM

public AbstractMixtureWeightEM(IndexReader indexReader,
                               int componentNum,
                               int iterationNum,
                               boolean docFirst)
Method Detail

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)