#include <montecarlo.hpp>
|
| | montecarlo (prior &in_prior, data &in_data, forwardModel in_model, int in_nt, double in_dt, int in_iterations, bool useGeneralisedMomentumPropose, bool useGeneralisedMomentumKinetic, bool normalizeMomentum, bool evaluateHamiltonianBeforeLeap) |
| |
| | ~montecarlo () |
| |
| void | sample (bool hamilton) |
| |
| std::vector< double > | precomp_misfitGrad (std::vector< double > parameters) |
| |
Definition at line 47 of file montecarlo.hpp.
◆ montecarlo()
| montecarlo::montecarlo |
( |
prior & |
in_prior, |
|
|
data & |
in_data, |
|
|
forwardModel |
in_model, |
|
|
int |
in_nt, |
|
|
double |
in_dt, |
|
|
int |
in_iterations, |
|
|
bool |
useGeneralisedMomentumPropose, |
|
|
bool |
useGeneralisedMomentumKinetic, |
|
|
bool |
normalizeMomentum, |
|
|
bool |
evaluateHamiltonianBeforeLeap |
|
) |
| |
◆ ~montecarlo()
| montecarlo::~montecarlo |
( |
| ) |
|
|
default |
◆ chi()
| double montecarlo::chi |
( |
| ) |
|
|
private |
◆ energy()
| double montecarlo::energy |
( |
| ) |
|
|
private |
◆ kineticEnergy()
| double montecarlo::kineticEnergy |
( |
| ) |
|
|
private |
◆ leap_frog()
| void montecarlo::leap_frog |
( |
int & |
uturns, |
|
|
bool |
writeTrajectory |
|
) |
| |
|
private |
◆ precomp_misfit()
| double montecarlo::precomp_misfit |
( |
| ) |
|
|
private |
◆ precomp_misfitGrad() [1/2]
| std::vector< double > montecarlo::precomp_misfitGrad |
( |
std::vector< double > |
parameters | ) |
|
◆ precomp_misfitGrad() [2/2]
| std::vector< double > montecarlo::precomp_misfitGrad |
( |
| ) |
|
|
private |
◆ propose_hamilton()
| void montecarlo::propose_hamilton |
( |
int & |
uturns | ) |
|
|
private |
◆ propose_metropolis()
| void montecarlo::propose_metropolis |
( |
| ) |
|
|
private |
◆ sample()
| void montecarlo::sample |
( |
bool |
hamilton | ) |
|
◆ write_sample()
| void montecarlo::write_sample |
( |
std::ofstream & |
outfile, |
|
|
double |
misfit |
|
) |
| |
|
private |
◆ _A
| std::vector<std::vector<double> > montecarlo::_A |
|
private |
◆ _bT
| std::vector<double> montecarlo::_bT |
|
private |
◆ _c
◆ _CholeskyLowerMassMatrix
| std::vector<std::vector<double> > montecarlo::_CholeskyLowerMassMatrix |
|
private |
◆ _currentModel
| std::vector<double> montecarlo::_currentModel |
|
private |
◆ _currentMomentum
| std::vector<double> montecarlo::_currentMomentum |
|
private |
◆ _data
◆ _dt
◆ _evaluateHamiltonianBeforeLeap
| bool montecarlo::_evaluateHamiltonianBeforeLeap |
|
private |
◆ _inverseMassMatrix
| std::vector<std::vector<double> > montecarlo::_inverseMassMatrix |
|
private |
◆ _inverseMassMatrixDiagonal
| std::vector<std::vector<double> > montecarlo::_inverseMassMatrixDiagonal |
|
private |
◆ _iterations
| int montecarlo::_iterations |
|
private |
◆ _massMatrix
| std::vector<std::vector<double> > montecarlo::_massMatrix |
|
private |
◆ _model
◆ _normalizeMomentum
| bool montecarlo::_normalizeMomentum |
|
private |
◆ _nt
◆ _posterior
◆ _prior
◆ _proposedModel
| std::vector<double> montecarlo::_proposedModel |
|
private |
◆ _proposedMomentum
| std::vector<double> montecarlo::_proposedMomentum |
|
private |
◆ _useGeneralisedMomentumKinetic
| bool montecarlo::_useGeneralisedMomentumKinetic |
|
private |
◆ _useGeneralisedMomentumPropose
| bool montecarlo::_useGeneralisedMomentumPropose |
|
private |
The documentation for this class was generated from the following files: