Defines a type responsible for generating a proposal state for a Monte-Carlo, Markov-Chain sampler.
Creates a new sample proposal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mcmc_proposal), | intent(inout) | :: | this |
The mcmc_proposal object. |
||
class(mcmc_target), | intent(inout) | :: | tgt |
The mcmc_target object. |
||
real(kind=real64), | intent(in), | dimension(:) | :: | xc |
An N-element array containing the existing parameter estimates. |
|
real(kind=real64), | intent(out), | dimension(:) | :: | xp |
An N-element array where the proposed parameters will be output. |
|
real(kind=real64), | intent(in) | :: | vc |
The current variance (noise) term value. |
||
real(kind=real64), | intent(out) | :: | vp |
The proposed variance (noise) value. |
||
class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Gets a value determining if the parameter distributions should be recentered about the last stored position upon sampling.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mcmc_proposal), | intent(in) | :: | this |
The mcmc_proposal object. |
True if recentering is to be allowed; else, false.
Sets a value determining if the parameter distributions should be recentered about the last stored position upon sampling.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mcmc_proposal), | intent(inout) | :: | this |
The mcmc_proposal object. |
||
logical, | intent(in) | :: | x |
True if recentering is to be allowed; else, false. |