|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.distance.SequencePairLikelihood
public class SequencePairLikelihood
computation of the (negative) log-likelihood for a pair of sequences
| Constructor Summary | |
|---|---|
SequencePairLikelihood(SitePattern sp,
SubstitutionModel m)
initialisation |
|
| Method Summary | |
|---|---|
double |
evaluate(double arc)
compute function value |
double |
getLowerBound()
get lower bound of argument |
double |
getUpperBound()
get upper bound of argument |
void |
setSequences(byte[] s1,
byte[] s2)
specification of two sequences (not necessarily in the given alignment but with the same weights in the site pattern) |
void |
setSequences(int s1,
int s2)
specification of two sequences in the given alignment |
void |
updateModel(SubstitutionModel m)
update model of substitution |
void |
updateSitePattern(SitePattern sp)
update site pattern |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequencePairLikelihood(SitePattern sp,
SubstitutionModel m)
sp - site patternm - model of substitution| Method Detail |
|---|
public void updateModel(SubstitutionModel m)
model - of substitutionpublic void updateSitePattern(SitePattern sp)
site - pattern
public void setSequences(int s1,
int s2)
s1 - number of first sequences2 - number of second sequence
public void setSequences(byte[] s1,
byte[] s2)
s1 - site pattern of first sequences2 - site pattern of second sequencepublic final double evaluate(double arc)
UnivariateFunction
evaluate in interface UnivariateFunctionpublic double getLowerBound()
UnivariateFunction
getLowerBound in interface UnivariateFunctionpublic double getUpperBound()
UnivariateFunction
getUpperBound in interface UnivariateFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||