@@ -0,0 +1,2106 @@
+/*    */ package edu.drexel.cis.dragon.ir.topicmodel;%0A/*    */ %0A/*    */ import edu.drexel.cis.dragon.ir.index.IRCollection;%0A/*    */ import edu.drexel.cis.dragon.ir.index.IRTerm;%0A/*    */ import edu.drexel.cis.dragon.ir.index.IndexReader;%0A/*    */ import edu.drexel.cis.dragon.matrix.vector.DoubleVector;%0A/*    */ import java.io.PrintStream;%0A/*    */ import java.io.PrintWriter;%0A/*    */ %0A/*    */ public class AbstractModel%0A/*    */ %7B%0A/*    */   protected int iterations;%0A/*    */   protected int seed;%0A/*    */   protected PrintWriter statusOut;%0A/*    */ %0A/*    */   public AbstractModel()%0A/*    */   %7B%0A/* 22 */     this.seed = -1;%0A/* 23 */     this.iterations = 100;%0A/*    */   %7D%0A/*    */ %0A/*    */   public int getIterationNum() %7B%0A/* 27 */     return this.iterations;%0A/*    */   %7D%0A/*    */ %0A/*    */   public void setIterationNum(int num) %7B%0A/* 31 */     this.iterations = num;%0A/*    */   %7D%0A/*    */ %0A/*    */   public void setRandomSeed(int seed) %7B%0A/* 35 */     this.seed = seed;%0A/*    */   %7D%0A/*    */ %0A/*    */   public void setStatusOut(PrintWriter out) %7B%0A/* 39 */     this.statusOut = out;%0A/*    */   %7D%0A/*    */ %0A/*    */   protected void printStatus(String line) %7B%0A/*    */     try %7B%0A/* 44 */       System.out.println(line);%0A/* 45 */       if (this.statusOut != null) %7B%0A/* 46 */         this.statusOut.write(line + %22%5Cn%22);%0A/* 47 */         this.statusOut.flush();%0A/*    */       %7D%0A/*    */     %7D%0A/*    */     catch (Exception e) %7B%0A/* 51 */       e.printStackTrace();%0A/*    */     %7D%0A/*    */   %7D%0A/*    */ %0A/*    */   protected DoubleVector getBkgModel(IndexReader indexReader)%0A/*    */   %7B%0A/* 59 */     DoubleVector bkgModel = new DoubleVector(indexReader.getCollection().getTermNum());%0A/* 60 */     for (int i = 0; i %3C bkgModel.size(); i++)%0A/* 61 */       bkgModel.set(i, indexReader.getIRTerm(i).getFrequency());%0A/* 62 */     bkgModel.multiply(1.0D / indexReader.getCollection().getTermCount());%0A/* 63 */     return bkgModel;%0A/*    */   %7D%0A/*    */ %7D%0A%0A/* Location:           C:%5Cdragontoolikt%5Cdragontool.jar%0A * Qualified Name:     dragon.ir.topicmodel.AbstractModel%0A * JD-Core Version:    0.6.2%0A */%0A

Create AbstractModel.java