statalign.mcmc
Class ContinuousPositiveParameterMove

java.lang.Object
  extended by statalign.mcmc.McmcMove
      extended by statalign.mcmc.ContinuousPositiveParameterMove
Direct Known Subclasses:
AllEdgeMove, ContinuousPositiveStructAlignMove, EdgeMove, IndelMove

public abstract class ContinuousPositiveParameterMove
extends McmcMove


Field Summary
 
Fields inherited from class statalign.mcmc.McmcMove
acceptAllDuringFirstHalfBurnin, acceptanceCount, autoTune, lastMoveAccepted, lowCounts, maxAcceptance, maxProposalWidthControlVariable, minAcceptance, moveProposed, name, proposalCount, proposalWidthControlVariable, spanMultiplier
 
Constructor Summary
ContinuousPositiveParameterMove(McmcModule m, ParameterInterface p, PriorDistribution<java.lang.Double> pr, ProposalDistribution<java.lang.Double> prop, java.lang.String n)
           
 
Method Summary
 void copyState(java.lang.Object externalState)
           
 double logPriorDensity(java.lang.Object externalState)
           
 double proposal(java.lang.Object externalState)
           
 void restoreState(java.lang.Object externalState)
           
 void setMaxValue(double x)
           
 void setMinValue(double x)
           
abstract  void updateLikelihood(java.lang.Object externalState)
           
 void updateProposal(double proposalWidthControlVariable, java.lang.Double currentParam)
           
 
Methods inherited from class statalign.mcmc.McmcMove
acceptanceRate, afterFirstHalfBurnin, afterMove, getOwner, getParam, getTime, isParamChangeAccepted, move
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousPositiveParameterMove

public ContinuousPositiveParameterMove(McmcModule m,
                                       ParameterInterface p,
                                       PriorDistribution<java.lang.Double> pr,
                                       ProposalDistribution<java.lang.Double> prop,
                                       java.lang.String n)
Method Detail

setMinValue

public void setMinValue(double x)

setMaxValue

public void setMaxValue(double x)

copyState

public void copyState(java.lang.Object externalState)
Specified by:
copyState in class McmcMove

proposal

public double proposal(java.lang.Object externalState)
Specified by:
proposal in class McmcMove

logPriorDensity

public double logPriorDensity(java.lang.Object externalState)
Specified by:
logPriorDensity in class McmcMove

updateLikelihood

public abstract void updateLikelihood(java.lang.Object externalState)
Specified by:
updateLikelihood in class McmcMove

restoreState

public void restoreState(java.lang.Object externalState)
Specified by:
restoreState in class McmcMove

updateProposal

public void updateProposal(double proposalWidthControlVariable,
                           java.lang.Double currentParam)