|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstatalign.base.hmm.Hmm
statalign.base.hmm.HmmSilent
statalign.base.hmm.HmmNonParam
public class HmmNonParam
An implementation of the abstract pair-HMM that emits characters into non-observable sequences Used when a new alignment is proposed that aligns together two substrings via an ancestral sequence.
| Field Summary |
|---|
| Fields inherited from class statalign.base.hmm.Hmm |
|---|
params |
| Constructor Summary | |
|---|---|
HmmNonParam()
Constructs a HMMSilent for Tree. |
|
| Method Summary | |
|---|---|
int[] |
getEmitPatt2State()
Returns a conversion array from emission patterns (coded as integers) into state indices. |
int |
getEnd()
Returns the index of the end state. |
int |
getSilent()
Returns the index of the silent state. |
int |
getStart()
Returns the index of the start state. |
int[][] |
getStateEmit()
Returns an array specifying the emission pattern of each state. |
static void |
main(java.lang.String[] args)
For testing/debugging purposes. |
double[][] |
preCalcRedTransMatrix(double[][] redTransMatrix,
double[][] transMatrix)
Returns the transition matrix. |
double[][] |
preCalcTransMatrix(double[][] transMatrix,
double t1,
double t2)
Returns the transition matrix. |
void |
updateParam(double[] _P)
|
| Methods inherited from class statalign.base.hmm.Hmm |
|---|
getLogStationaryProb |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HmmNonParam()
| Method Detail |
|---|
public void updateParam(double[] _P)
updateParam in class HmmSilent
public double[][] preCalcTransMatrix(double[][] transMatrix,
double t1,
double t2)
preCalcTransMatrix in class HmmSilenttransMatrix - If null, the function allocates memory for the return matrix
If not, this is used for storing the matrix. For speeding-up purposes,
note that allocating memory is time-consuming. In this way we need to allocate
memory when asked.t1 - The length of the left edget2 - The length of the right edge.
public double[][] preCalcRedTransMatrix(double[][] redTransMatrix,
double[][] transMatrix)
preCalcRedTransMatrix in class HmmSilentredTransMatrix - Array to store the results, may be left nulltransMatrix - Input transition matrix with a silent state
public int getSilent()
getSilent in class HmmSilentpublic int getStart()
getStart in class Hmmpublic int getEnd()
getEnd in class Hmmpublic int[][] getStateEmit()
getStateEmit in class Hmmpublic int[] getEmitPatt2State()
getEmitPatt2State in class Hmmpublic static void main(java.lang.String[] args)
args - No argument is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||