edu.umd.hooka.alignment
Class PartialCountContainer

java.lang.Object
  extended by edu.umd.hooka.alignment.PartialCountContainer
All Implemented Interfaces:
Cloneable, Writable

public class PartialCountContainer
extends Object
implements Writable, Cloneable

Store anything that stores partial counts.

Author:
redpony

Field Summary
static int CONTENT_ARRAY
           
static int CONTENT_ATABLE
           
 
Constructor Summary
PartialCountContainer()
           
PartialCountContainer(Writable content)
           
 
Method Summary
 Object clone()
           
 Writable getContent()
           
 int getType()
           
 void normalize(boolean variationalBayes, float alpha)
          TODO: atable normalization currently doesn't support VB or an alpha parameter.
 void plusEquals(PartialCountContainer rhs)
           
 void readFields(DataInput in)
           
 void setContent(Writable content)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTENT_ATABLE

public static final int CONTENT_ATABLE
See Also:
Constant Field Values

CONTENT_ARRAY

public static final int CONTENT_ARRAY
See Also:
Constant Field Values
Constructor Detail

PartialCountContainer

public PartialCountContainer()

PartialCountContainer

public PartialCountContainer(Writable content)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

setContent

public void setContent(Writable content)

getContent

public Writable getContent()

getType

public int getType()

plusEquals

public void plusEquals(PartialCountContainer rhs)

normalize

public void normalize(boolean variationalBayes,
                      float alpha)
TODO: atable normalization currently doesn't support VB or an alpha parameter. This should probably be a separate param, ie. alpha2 and vb 2.

Parameters:
variationalBayes -
alpha -

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface Writable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object