Defines an interface to calculate log-likelihoods given a set of parameters for an specific model, and assuming that the corresponding datatypes have Gaussian errors.
More...
#include "likelihood/likelihood_base.h"
|
virtual double | operator() (std::vector< double > &x) |
| Returns the log-likelihood of a vector of parameters \( \mathbf{x} \).
|
|
virtual std::vector< double > | gradient (std::vector< double > &x, prior &Pr) |
|
virtual double | chi_squared (std::vector< double > &x) |
| Returns the \( \chi^2 \) of a vector of parameters \( \mathbf{x} \).
|
|
virtual void | set_mpi_communicator (MPI_Comm comm) |
| Defines a set of processors provided to the model for parallel computation via an MPI communicator. Only facilates code parallelization if the model computation is parallelized via MPI.
|
|
void | output_model_data_comparison (std::ostream &out) |
|
void | output_model_data_comparison (std::string filename) |
|
|
virtual void | output (std::ostream &out) |
|
|
double | step_size (double u) |
|
|
double | _logLikelihood |
|
std::vector< double > | _xlast |
|
- Warning
- This class contains multiple purely virtual functions, making it impossible to generate an explicit instantiation.
std::vector< double > gradient |
( |
std::vector< double > & |
x, |
|
|
prior & |
Pr |
|
) |
| |
|
virtual |
void output |
( |
std::ostream & |
out | ) |
|
|
protectedvirtual |
Outputs the data and model, as modified by the likelihood appropriately, to the specified output stream. Useful for comparison later. ASSUMES that only process 0 on _comm is outputting.
Reimplemented in likelihood_optimal_complex_gain_constrained_crosshand_visibilities, likelihood_optimal_complex_gain_visibility, likelihood_optimal_gain_correction_visibility_amplitude, likelihood_marginalized_closure_phase, likelihood_closure_amplitude, likelihood_marginalized_visibility_amplitude, likelihood_closure_phase, likelihood_crosshand_visibilities, likelihood_matched_filter, likelihood_visibility, likelihood_polarization_fraction, likelihood_flux, and likelihood_visibility_amplitude.
void output_model_data_comparison |
( |
std::ostream & |
out | ) |
|
Outputs the data and model, as modified by the likelihood appropriately, to the specified output stream. Useful for comparison later. ASSUMES that only process 0 on _comm is outputting.
void output_model_data_comparison |
( |
std::string |
filename | ) |
|
Outputs the data and model, as modified by the likelihood appropriately, to the specified output file. Useful for comparison later.
The documentation for this class was generated from the following files: