statalign.base.mcmc
Class EdgeMove

java.lang.Object
  extended by statalign.mcmc.McmcMove
      extended by statalign.mcmc.ContinuousPositiveParameterMove
          extended by statalign.base.mcmc.EdgeMove

public class EdgeMove
extends ContinuousPositiveParameterMove


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

Constructor Detail

EdgeMove

public EdgeMove(McmcModule m,
                int edgeIndex,
                PriorDistribution<java.lang.Double> pr,
                ProposalDistribution<java.lang.Double> prop,
                java.lang.String n)

EdgeMove

public EdgeMove(McmcModule m,
                int edgeIndex,
                PriorDistribution<java.lang.Double> pr,
                ProposalDistribution<java.lang.Double> prop,
                double propVar,
                java.lang.String n)
Method Detail

copyState

public void copyState(java.lang.Object externalState)
Overrides:
copyState in class ContinuousPositiveParameterMove

afterMove

public void afterMove(java.lang.Object externalState)
Overrides:
afterMove in class McmcMove

proposal

public double proposal(java.lang.Object externalState)
Overrides:
proposal in class ContinuousPositiveParameterMove

updateLikelihood

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

restoreState

public void restoreState(java.lang.Object externalState)
Overrides:
restoreState in class ContinuousPositiveParameterMove