public class MCMoveStepTracker extends MCMoveTracker
Modifier and Type | Field | Description |
---|---|---|
protected double |
acceptanceTarget |
|
protected long |
adjustInterval |
|
protected double |
adjustStep |
|
protected long |
defaultAdjustInterval |
|
protected double |
defaultAdjustStep |
|
protected long |
lastAdjust |
|
protected long |
maxAdjustInterval |
|
protected MCMoveStepDependent |
mcMove |
|
protected double |
minAdjustStep |
|
protected boolean |
noisyAdjustment |
|
protected boolean |
noReset |
|
protected boolean |
tunable |
chiSum, nAccept, nTrials
Constructor | Description |
---|---|
MCMoveStepTracker() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
adjustStepSize() |
|
double |
getAcceptanceTarget() |
|
long |
getAdjustInterval() |
|
double |
getAdjustStepSize() |
|
boolean |
getNoisyAdjustment() |
|
boolean |
getTunable() |
|
void |
resetAdjustStep() |
Resets damped step adjustment.
|
void |
setAcceptanceTarget(double target) |
Sets the desired rate of acceptance (as a fraction between 0 and 1
inclusive) of trials of this move.
|
void |
setAdjustInterval(long i) |
Sets the interval between steps size adjustments.
|
void |
setAdjustStepSize(double s) |
Sets the step adjustment size.
|
void |
setMaxAdjustInterval(long maxAdjustInterval) |
The step size is adjusted every adjustInterval trials.
|
void |
setMCMove(MCMoveStepDependent newMCMove) |
|
void |
setMinAdjustStep(double minAdjustStep) |
When the step size is adjusted, it is adjusted by adjustStep.
|
void |
setNoisyAdjustment(boolean isNoisy) |
|
void |
setTunable(boolean b) |
Sets a flag to indicate whether tuning of the move is to be performed
Tuning adjust the step size or other property of the move with the aim of
achieving a trial acceptance rate that is near to some target value.
|
void |
updateCounts(boolean moveWasAccepted,
double chi) |
Updates statistics regarding the acceptance rate of this move.
|
acceptanceProbability, acceptanceRatio, reset
protected MCMoveStepDependent mcMove
protected double acceptanceTarget
protected long adjustInterval
protected long maxAdjustInterval
protected boolean tunable
protected long lastAdjust
protected double adjustStep
protected double minAdjustStep
protected double defaultAdjustStep
protected long defaultAdjustInterval
protected boolean noisyAdjustment
protected boolean noReset
public void setMCMove(MCMoveStepDependent newMCMove)
public void updateCounts(boolean moveWasAccepted, double chi)
MCMoveTracker
updateCounts
in class MCMoveTracker
moveWasAccepted
- indicates whether the most recently attempted move was
acceptedchi
- indicates the probability with which the MC move was
accepted.protected void adjustStepSize()
public void resetAdjustStep()
public void setMaxAdjustInterval(long maxAdjustInterval)
maxAdjustInterval
- the value beyond which adjustInterval will not
be increased.public void setMinAdjustStep(double minAdjustStep)
minAdjustStep
- the value beyond which adjustStep will not be
decreased.public final double getAcceptanceTarget()
public final void setAcceptanceTarget(double target)
public final long getAdjustInterval()
public void setAdjustInterval(long i)
public double getAdjustStepSize()
public void setAdjustStepSize(double s)
public final boolean getTunable()
public final void setTunable(boolean b)
public boolean getNoisyAdjustment()
public void setNoisyAdjustment(boolean isNoisy)