dragon.ir.topicmodel
Class AbstractTwoDimensionModel

java.lang.Object
  |
  +--dragon.ir.topicmodel.AbstractModel
        |
        +--dragon.ir.topicmodel.AbstractTwoDimensionModel
All Implemented Interfaces:
TwoDimensionModel
Direct Known Subclasses:
TwoDimensionEM, TwoDimensionGibbsLDA

public abstract class AbstractTwoDimensionModel
extends AbstractModel
implements TwoDimensionModel

Abstract class of two dimensional topic model

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Field Summary
protected  double[][] arrCommonThemeProb
           
protected  double[][][] arrDocTheme
           
protected  double[][] arrDocView
           
protected  double[][][] arrThemeProb
           
protected  double[][] arrViewProb
           
protected  int docNum
           
protected  int themeNum
           
protected  int themeTermNum
           
protected  IndexReader topicIndexReader
           
protected  IndexReader viewIndexReader
           
protected  int viewNum
           
protected  int viewTermNum
           
 
Fields inherited from class dragon.ir.topicmodel.AbstractModel
iterations, seed, statusOut
 
Constructor Summary
AbstractTwoDimensionModel(IndexReader viewIndexReader, IndexReader topicIndexReader)
           
 
Method Summary
 double[] getCommonTopic(int topicIndex)
           
 int getDocNum()
           
 double[] getDocTopics(int docIndex, int viewIndex)
           
 double[] getDocViews(int docIndex)
           
 int getTopicNum()
           
 java.lang.String getTopicTermName(int termIndex)
           
 int getTopicTermNum()
           
 double[] getView(int viewIndex)
           
 int getViewNum()
           
 java.lang.String getViewTermName(int termIndex)
           
 int getViewTermNum()
           
 double[] getViewTopic(int viewIndex, int topicIndex)
           
 
Methods inherited from class dragon.ir.topicmodel.AbstractModel
getBkgModel, getIterationNum, printStatus, setIterationNum, setRandomSeed, setStatusOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dragon.ir.topicmodel.TwoDimensionModel
estimateModel
 

Field Detail

viewIndexReader

protected IndexReader viewIndexReader

topicIndexReader

protected IndexReader topicIndexReader

docNum

protected int docNum

viewNum

protected int viewNum

themeNum

protected int themeNum

viewTermNum

protected int viewTermNum

themeTermNum

protected int themeTermNum

arrViewProb

protected double[][] arrViewProb

arrDocView

protected double[][] arrDocView

arrThemeProb

protected double[][][] arrThemeProb

arrDocTheme

protected double[][][] arrDocTheme

arrCommonThemeProb

protected double[][] arrCommonThemeProb
Constructor Detail

AbstractTwoDimensionModel

public AbstractTwoDimensionModel(IndexReader viewIndexReader,
                                 IndexReader topicIndexReader)
Method Detail

getViewNum

public int getViewNum()
Specified by:
getViewNum in interface TwoDimensionModel

getTopicNum

public int getTopicNum()
Specified by:
getTopicNum in interface TwoDimensionModel

getView

public double[] getView(int viewIndex)
Specified by:
getView in interface TwoDimensionModel

getCommonTopic

public double[] getCommonTopic(int topicIndex)
Specified by:
getCommonTopic in interface TwoDimensionModel

getViewTopic

public double[] getViewTopic(int viewIndex,
                             int topicIndex)
Specified by:
getViewTopic in interface TwoDimensionModel

getDocNum

public int getDocNum()
Specified by:
getDocNum in interface TwoDimensionModel

getDocViews

public double[] getDocViews(int docIndex)
Specified by:
getDocViews in interface TwoDimensionModel

getDocTopics

public double[] getDocTopics(int docIndex,
                             int viewIndex)
Specified by:
getDocTopics in interface TwoDimensionModel

getViewTermNum

public int getViewTermNum()
Specified by:
getViewTermNum in interface TwoDimensionModel

getTopicTermNum

public int getTopicTermNum()
Specified by:
getTopicTermNum in interface TwoDimensionModel

getViewTermName

public java.lang.String getViewTermName(int termIndex)
Specified by:
getViewTermName in interface TwoDimensionModel

getTopicTermName

public java.lang.String getTopicTermName(int termIndex)
Specified by:
getTopicTermName in interface TwoDimensionModel