edu.umd.hooka.alignment
Class PartialCountContainer
java.lang.Object
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
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
PartialCountContainer
public PartialCountContainer()
PartialCountContainer
public PartialCountContainer(Writable content)
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