org.knowceans.lda
Class LdaInference

java.lang.Object
  extended by org.knowceans.lda.LdaInference

public class LdaInference
extends java.lang.Object

lda inference functions

lda-c reference: functions in lda-inference.c. TODO: merge with model?

Author:
heinrich

Field Summary
static float VAR_CONVERGED
           
static int VAR_MAX_ITER
           
 
Constructor Summary
LdaInference()
           
 
Method Summary
static double computeLikelihood(Document doc, LdaModel model, double[][] phi, double[] varGamma)
           
static double ldaInference(Document doc, LdaModel model, double[] varGamma, double[][] phi)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VAR_CONVERGED

public static float VAR_CONVERGED

VAR_MAX_ITER

public static int VAR_MAX_ITER
Constructor Detail

LdaInference

public LdaInference()
Method Detail

ldaInference

public static double ldaInference(Document doc,
                                  LdaModel model,
                                  double[] varGamma,
                                  double[][] phi)

computeLikelihood

public static double computeLikelihood(Document doc,
                                       LdaModel model,
                                       double[][] phi,
                                       double[] varGamma)