CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
cbl::modelling::distribution Namespace Reference

The namespace of the distribution modelling More...

Classes

struct  STR_Distr_model
 the structure STR_Distr_model More...
 
class  Modelling_Distribution
 The class Modelling_Distribution. More...
 

Functions

std::vector< double > model_gaussian (const std::vector< double > x, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
 compute a Gaussian PDF More...
 
std::vector< double > model_gaussian2 (const std::vector< double > x, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
 compute a Gaussian PDF, where the standard deviation, \(\sigma\), is expressed as More...
 

Detailed Description

The namespace of the distribution modelling

The modelling::distribution namespace contains all the functions to model distributions

Function Documentation

◆ model_gaussian()

std::vector< double > cbl::modelling::distribution::model_gaussian ( const std::vector< double >  x,
const std::shared_ptr< void >  inputs,
std::vector< double > &  parameter 
)

compute a Gaussian PDF

Parameters
xthe points where the distribution is evaluated
inputsmodel inputs
parametermodel parameters
Returns
the Gaussian PDF values

Definition at line 105 of file Modelling_Distribution.cpp.

◆ model_gaussian2()

std::vector< double > cbl::modelling::distribution::model_gaussian2 ( const std::vector< double >  x,
const std::shared_ptr< void >  inputs,
std::vector< double > &  parameter 
)

compute a Gaussian PDF, where the standard deviation, \(\sigma\), is expressed as

\(\sigma=\sigma_0k,\)

where \(k\) is fixed, \(\sigma_0\) is a base parameter, and \(\sigma\) is a derived parameter.

Parameters
xthe points where the distribution is evaluated
inputsmodel inputs
parametermodel parameters
Returns
the Gaussian PDF values

Definition at line 122 of file Modelling_Distribution.cpp.