org.knowceans.topics.cgen
Class GibbsSampler

java.lang.Object
  extended by org.knowceans.topics.cgen.GibbsSampler

public class GibbsSampler
extends java.lang.Object


Field Summary
(package private)  double[] alpha
           
(package private)  double beta
           
(package private)  int iter
           
(package private)  int K
           
(package private)  int M
           
(package private)  int Mq
           
(package private)  int niter
           
(package private)  int[] nk
           
(package private)  int[][] nkt
           
(package private)  int[][] nmk
           
(package private)  int[][] nmkq
           
(package private)  double[][] phi
           
(package private)  double[] pp
           
(package private)  java.util.Random rand
           
(package private)  int V
           
(package private)  int[][] w
           
(package private)  int W
           
(package private)  int[][] wq
           
(package private)  int Wq
           
(package private)  int[][] z
           
(package private)  int[][] zq
           
 
Constructor Summary
GibbsSampler(int[][] w, int[][] wq, int K, int V, double alpha, double beta, java.util.Random rand)
           
 
Method Summary
 void init()
           
 void initq()
           
static void main(java.lang.String[] args)
           
 double ppx()
           
 void run(int niter)
           
 void runq(int niterq)
           
 java.lang.String toString()
           
protected  void updateHyper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rand

java.util.Random rand

iter

int iter

niter

int niter

M

int M

Mq

int Mq

nmk

int[][] nmk

nmkq

int[][] nmkq

alpha

double[] alpha

z

int[][] z

zq

int[][] zq

K

int K

nkt

int[][] nkt

nk

int[] nk

phi

double[][] phi

beta

double beta

w

int[][] w

wq

int[][] wq

W

int W

Wq

int Wq

V

int V

pp

double[] pp
Constructor Detail

GibbsSampler

public GibbsSampler(int[][] w,
                    int[][] wq,
                    int K,
                    int V,
                    double alpha,
                    double beta,
                    java.util.Random rand)
Method Detail

main

public static void main(java.lang.String[] args)

init

public void init()

initq

public void initq()

run

public void run(int niter)

runq

public void runq(int niterq)

updateHyper

protected void updateHyper()

ppx

public double ppx()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object