Defines a class that constructs a marginalized closure phase likelihood object. More...
#include "likelihood/likelihood_marginalized_closure_phase.h"
Public Member Functions | |
likelihood_marginalized_closure_phase (data_closure_phase &data, model_closure_phase &model, double sigma_phi) | |
virtual double | operator() (std::vector< double > &x) |
Returns the log-likelihood of a vector of parameters \( \mathbf{x} \). | |
virtual double | chi_squared (std::vector< double > &x) |
Returns the \( \chi^2 \) of a vector of parameters \( \mathbf{x} \). | |
double | get_marginalized_phi () const |
This functions gets the marginalized closure phase$. | |
double | get_maximizing_phi () const |
This functions gets the marginalized closure phase$. | |
virtual void | set_mpi_communicator (MPI_Comm comm) |
Public Member Functions inherited from likelihood_base | |
virtual std::vector< double > | gradient (std::vector< double > &x, prior &Pr) |
void | output_model_data_comparison (std::ostream &out) |
void | output_model_data_comparison (std::string filename) |
Protected Member Functions | |
virtual void | output (std::ostream &out) |
Private Member Functions | |
double | angle_difference (double a, double b) const |
Private Attributes | |
data_closure_phase & | _data |
model_closure_phase & | _model |
const double | _sigma_phi |
double | _phiMarg |
double | _phiMax |
Additional Inherited Members | |
Protected Attributes inherited from likelihood_base | |
MPI_Comm | _comm |
Detailed Description
This class takes a closure phase data object and a closure phase model object, and then returns the log likelihood. by direct comparison to the observational data assuming that the measured closure phase data has Gaussian errors.
This class also includes an utility function for computing the \( \chi^2 \) to assess fit quality
Member Function Documentation
|
protectedvirtual |
Outputs the data and model, as modified by the likelihood appropriately, to the specified output stream. Useful for comparison later.
Reimplemented from likelihood_base.
|
virtual |
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.
Reimplemented from likelihood_base.
The documentation for this class was generated from the following files:
- likelihood/likelihood_marginalized_closure_phase.h
- likelihood/likelihood_marginalized_closure_phase.cpp