likelihood_power_tempered Class Reference

Defines the power-tempered likelihood. More...

#include "likelihood/likelihood_power_tempered.h"

Inheritance diagram for likelihood_power_tempered:
Collaboration diagram for likelihood_power_tempered:

Public Member Functions

 likelihood_power_tempered (likelihood &L)
 Likelihood class constructor.
 
 ~likelihood_power_tempered ()
 Likelihood class destructor.
 
void set_beta (double beta)
 
double get_lklhd_no_temp ()
 get the likelihood without tempering.
 
double operator() (std::vector< double > &)
 
std::vector< double > gradient (std::vector< double > &x)
 Gradient operator.
 
- Public Member Functions inherited from likelihood
 likelihood (std::vector< prior_base * > P, std::vector< transform_base * > T, std::vector< likelihood_base * > L, std::vector< double > &W)
 Likelihood class constructor.
 
 likelihood (std::vector< prior_base * > P, std::vector< likelihood_base * > L, std::vector< double > &W)
 Likelihood class constructor.
 
 ~likelihood ()
 Likelihood class destructor.
 
void forward_transform (std::vector< double > &)
 
double chi_squared (std::vector< double > &)
 Returns the chi squared evaluated at a vector in the parameter space.
 
bool transform_state ()
 
void use_finite_difference_gradients ()
 Set the likelihood to use finite differences in the gradient computation.
 
void use_intrinsic_likelihood_gradients ()
 Set the likelihood to use the intrinsic likelihood gradients in the gradient computation.
 
std::vector< prior_base * > priors ()
 Returns access to the prior vector.
 
std::vector< transform_base * > transforms ()
 Returns access to the transform vector.
 
std::vector< likelihood_base * > likelihoods ()
 Returns access to the base likelihood vector.
 
std::vector< double > & weights ()
 Returns access to the weights vector.
 
void set_mpi_communicator (MPI_Comm comm)
 
void output_1d_slice (std::string fname, std::vector< double > p1, std::vector< double > p2, double xmin=-1, double xmax=2, size_t Nx=128)
 Output along a line.
 
void output_2d_slice (std::string fname, std::vector< double > p1, std::vector< double > p2, std::vector< double > p3, double xmin=-1, double xmax=2, size_t Nx=128, double ymin=-1, double ymax=2, size_t Ny=128)
 Output a surface.
 

Private Attributes

likelihood_L
 
double _beta
 
double _lklhd_no_temp
 

Additional Inherited Members

- Protected Attributes inherited from likelihood
MPI_Comm _comm
 

Detailed Description

Defines the combined power_tempered likelihood class. This takes a generic combined likelihood function and then power tempers its value. This is useful when using a parallel tempering scheme.

Member Function Documentation

double operator() ( std::vector< double > &  x)
virtual

Overloaded parenthesis operator that returns the log-likelihood multiplied by beta of a vector in the parameter space at which the likelihood is to be calculated

Reimplemented from likelihood.

void set_beta ( double  beta)

Sets the inverse temperature for the likelihood functions If not set, then beta = 1.


The documentation for this class was generated from the following files: