CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
cbl::statistics::Prior Class Reference

The class Prior. More...

#include "Headers/Prior.h"

Public Member Functions

double operator() (const std::vector< double > parameters)
 
double log (const std::vector< double > parameter)
 compute the logarithm of the prior for the input parameters More...
 
Constructors/destructors
 Prior ()
 default constructor
 
 Prior (const Prior_function prior_function, const std::shared_ptr< void > prior_function_inputs)
 constructor More...
 
 ~Prior ()=default
 default destructor
 

Protected Attributes

Prior_function m_prior_function
 prior function
 
std::shared_ptr< void > m_prior_function_inputs
 inputs of the prior function
 

Detailed Description

The class Prior.

This class is used to define the distribution

Definition at line 59 of file Prior.h.

Constructor & Destructor Documentation

◆ Prior()

cbl::statistics::Prior::Prior ( const Prior_function  prior_function,
const std::shared_ptr< void >  prior_function_inputs 
)

constructor

Parameters
prior_functionthe prior function
prior_function_inputsinputs for the prior function

Definition at line 43 of file Prior.cpp.

Member Function Documentation

◆ log()

double cbl::statistics::Prior::log ( const std::vector< double >  parameter)

compute the logarithm of the prior for the input parameters

Parameters
parametervector containing the input parameters
Returns
the prior function

Definition at line 62 of file Prior.cpp.

◆ operator()()

double cbl::statistics::Prior::operator() ( const std::vector< double >  parameters)

compute the prior for input parameters

Parameters
parametersthe input parameters
Returns
the prior function

Definition at line 53 of file Prior.cpp.


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