Defines the interface for models that generate the full complex crosshand visibility data appropriate for comparison with datum_crosshand_visibilities_amplitude.h. More...
#include "model/model_crosshand_visibilities.h"
Public Member Functions | |
virtual void | generate_model (std::vector< double > parameters)=0 |
A user-supplied one-time generate function that permits model construction prior to calling the visibility_amplitude for each datum. Takes a vector of parameters. | |
virtual size_t | size () const =0 |
A user-supplied function that returns the number of the parameters the model expects. | |
virtual std::vector< std::complex< double > > | crosshand_visibilities (datum_crosshand_visibilities &d, double accuracy)=0 |
Returns a vector of complex visibility corresponding to RR,LL,RL,LR in Jy computed from the image given a datum_crosshand_visibilities_amplitude object, containing all of the accoutrements. While this provides access to the actual data value, the two could be separated if necessary. Also takes an accuracy parameter with the same units as the data, indicating the accuracy with which the model must generate a comparison value. Note that this can be redefined in child classes. | |
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 facilitates code parallelization if the model computation is parallelized via MPI. | |
Protected Attributes | |
MPI_Comm | _comm |
Detailed Description
To facilitate model-data comparisons, here a fixed interface that may be assumed by likelihoods, etc., for generating model complex crosshand visibilities data is defined. All models that produce complex crosshand visibility data should be child classes of model_crosshand_visibilities, thereby inheriting this interface. The key function is crosshand_visibilities which takes a datum_crosshand_visibilities_amplitude, providing access to all of the relevant accoutrements of a data point, and an accuracy parameter, and returns a vector of four complex numbers with the RR,LL,RL,LR complex visibilities in Jy.
- Warning
- This class contains multiple purely virtual functions, making it impossible to generate an explicit instantiation.
The documentation for this class was generated from the following files: