org.knowceans.sandbox.hlda
Class ChineseRestaurantProcess.CrpNode

java.lang.Object
  extended by org.knowceans.sandbox.hlda.ChineseRestaurantProcess.CrpNode
Enclosing class:
ChineseRestaurantProcess

 class ChineseRestaurantProcess.CrpNode
extends java.lang.Object


Field Summary
 int occupation
          occupation count (customers at the table).
 int z
          topic assigned to this node
 int[] zsum
          sum of all topics assigned to this node
 
Constructor Summary
ChineseRestaurantProcess.CrpNode()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

z

public int z
topic assigned to this node


occupation

public int occupation
occupation count (customers at the table). Is initially set to one (creation = first occupation)


zsum

public int[] zsum
sum of all topics assigned to this node

Constructor Detail

ChineseRestaurantProcess.CrpNode

ChineseRestaurantProcess.CrpNode()
Method Detail

toString

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