MCMoveStepTracker
public class MCMoveTracker
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected double |
chiSum |
|
long |
nAccept |
|
long |
nTrials |
Constructor | Description |
---|---|
MCMoveTracker() |
Modifier and Type | Method | Description |
---|---|---|
double |
acceptanceProbability() |
Returns the average probability of accepting the move associated with
this tracker.
|
double |
acceptanceRatio() |
Returns the fraction of accepted trials of the move associated with
this tracker.
|
void |
reset() |
|
void |
updateCounts(boolean moveWasAccepted,
double chi) |
Updates statistics regarding the acceptance rate of this move.
|
public void updateCounts(boolean moveWasAccepted, double chi)
moveWasAccepted
- indicates whether the most recently attempted move was
acceptedchi
- indicates the probability with which the MC move was
accepted.public double acceptanceRatio()
public double acceptanceProbability()
public void reset()