|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.mcmc.McmcModule
public abstract class McmcModule
Generic class for a group of McmcMove objects. Each ModelExtension is an instance of this class, as is the CoreMcmcModule
Field Summary | |
---|---|
double |
curLogLike
Current log-likelihood contribution |
boolean |
printExtraInfo
|
Constructor Summary | |
---|---|
McmcModule()
|
Method Summary | |
---|---|
void |
addMcmcMove(McmcMove m,
int weight)
|
void |
addMcmcMove(McmcMove m,
int weight,
int increment)
|
void |
afterFirstHalfBurnin()
|
void |
afterSampling()
|
void |
beforeSampling(Tree tree)
Called before the start of MCMC sampling, but after the initial tree, alignment etc. have been generated. |
double |
getLogLike()
|
java.lang.String |
getMcmcInfo()
|
McmcMove |
getMcmcMove(java.lang.String name)
|
java.util.List<McmcMove> |
getMcmcMoves()
|
int |
getParamChangeWeight()
|
void |
incrementWeights()
|
boolean |
isFirstHalfBurnin()
|
boolean |
isParamChangeAccepted(double logProposalRatio,
McmcMove m)
|
abstract double |
logLikeFactor(Tree tree)
This should return the log of the model's contribution to the likelihood, it will be added on to the log-likelihood of the current point in the MCMC state space. |
double |
logPrior(Tree tree)
This should return the log of the total prior calculated for the model parameters. |
void |
modifyProposalWidths()
|
boolean |
proposeParamChange(Tree tree)
|
void |
setAllMovesNotProposed()
|
void |
setLogLike(double ll)
|
void |
setMcmc(Mcmc m)
|
void |
setWeight(java.lang.String name,
int weight)
|
void |
zeroAllMoveCounts()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean printExtraInfo
public double curLogLike
Constructor Detail |
---|
public McmcModule()
Method Detail |
---|
public void setMcmc(Mcmc m)
public boolean isFirstHalfBurnin()
public int getParamChangeWeight()
public void setWeight(java.lang.String name, int weight)
public void addMcmcMove(McmcMove m, int weight)
public void addMcmcMove(McmcMove m, int weight, int increment)
public java.util.List<McmcMove> getMcmcMoves()
public void setAllMovesNotProposed()
public void zeroAllMoveCounts()
public McmcMove getMcmcMove(java.lang.String name)
public java.lang.String getMcmcInfo()
public void beforeSampling(Tree tree)
tree
- the starting treepublic void afterSampling()
public abstract double logLikeFactor(Tree tree)
tree
- current tree
public double getLogLike()
public void setLogLike(double ll)
public double logPrior(Tree tree)
public boolean proposeParamChange(Tree tree)
public void modifyProposalWidths()
public boolean isParamChangeAccepted(double logProposalRatio, McmcMove m)
public void incrementWeights()
public void afterFirstHalfBurnin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |