![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
The namespace of the functions and classes used for statistical analyses More...
Classes | |
| class | Chi2 |
| The class Chi2. More... | |
| struct | STR_DependentProbes_data_model |
| the structure STR_DependentProbes_data_model More... | |
| class | CombinedPosterior |
| The class CombinedPosterior. More... | |
| class | Likelihood |
| The class Likelihood. More... | |
| struct | STR_likelihood_inputs |
| the struct STR_likelihood_inputs More... | |
| class | LikelihoodParameters |
| The class LikelihoodParameters. More... | |
| class | Model |
| The class Model. More... | |
| class | Model1D |
| The class Model1D. More... | |
| class | Model2D |
| The class Model2D. More... | |
| class | ModelParameters |
| The class ModelParameters. More... | |
| class | Posterior |
| The class Posterior. More... | |
| class | PosteriorDistribution |
| The class PosteriorDistribution. More... | |
| class | PosteriorParameters |
| The class PosteriorParameters. More... | |
| class | Prior |
| The class Prior. More... | |
| class | PriorDistribution |
| The class PriorDistribution. More... | |
| class | Sampler |
| The class Sampler. More... | |
Typedefs | |
| typedef std::function< double(std::vector< double > &, const std::shared_ptr< void >)> | LogLikelihood_function |
| definition of a function for computation of the LogLikelihood | |
| typedef std::function< double(std::vector< double > &, const std::shared_ptr< void >)> | Likelihood_function |
| definition of a function for computation of the Likelihood | |
| typedef std::function< std::vector< double >std::vector< double >, std::shared_ptr< void >, std::vector< double > &)> | model_function_1D |
| 1D function: the inputs are a vector of values at which the function is computed, a pointer to a set of data used to construct the function and a vector of parameters | |
| typedef std::function< std::vector< std::vector< double > >std::vector< double >, std::vector< double >, std::shared_ptr< void >, std::vector< double > &)> | model_function_2D |
| 2D function: the inputs are the values at which the function is computed, a pointer to a set of data used to construct the function and a vector of parameters | |
| typedef std::function< std::vector< std::vector< double > >std::vector< std::vector< double > >, std::shared_ptr< void >, std::vector< double > &)> | model_function_generic |
| generic function: the inputs are the values at which the function is computed, a pointer to a set of data used to construct the function and a vector of parameters | |
| typedef std::function< double(const std::vector< double >, const std::shared_ptr< void >)> | Prior_function |
| definition of a function for computation of the Prior | |
Enumerations | |
| enum class | LikelihoodType { _NotSet_ , _Gaussian_Error_ , _Gaussian_Covariance_ , _Poissonian_ , _UserDefined_ } |
| the type of likelihood function More... | |
| enum class | ParameterType { _Base_ , _Derived_ , _Correlated_ } |
| the parameter type More... | |
| enum class | SamplerType { _MetropolisHastings_ , _StretchMove_ } |
| the parameter type More... | |
Functions | |
| std::vector< std::string > | LikelihoodTypeNames () |
| return a vector containing the LikelihoodType names More... | |
| LikelihoodType | LikelihoodTypeCast (const int likelihoodTypeIndex) |
| cast an enum of type LikelihoodType from its index More... | |
| LikelihoodType | LikelihoodTypeCast (const std::string likelihoodTypeName) |
| cast an enum of type LikelihoodType from its name More... | |
| std::vector< LikelihoodType > | LikelihoodTypeCast (const std::vector< int > likelihoodTypeIndeces) |
| cast an enum of type LikelihoodType from indeces More... | |
| std::vector< LikelihoodType > | LikelihoodTypeCast (const std::vector< std::string > likelihoodTypeNames) |
| cast enums of type LikelihoodType from thier names More... | |
| double | LogLikelihood_1D_interpolated (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the loglikelihood on a grid More... | |
| double | LogLikelihood_2D_interpolated (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the loglikelihood on a grid More... | |
| double | LogLikelihood_Gaussian_1D_error (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the Gaussian log-likelihood More... | |
| double | LogLikelihood_Gaussian_1D_covariance (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the gaussian loglikelihood More... | |
| double | LogLikelihood_Gaussian_2D_error (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the gaussian loglikelihood model with one parameter \( \chi^2 \) More... | |
| double | LogLikelihood_Poissonian_1D_ (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the poissonian loglikelihood More... | |
| double | LogLikelihood_Poissonian_2D_ (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| function to compute the poissonian loglikelihood More... | |
| std::vector< std::string > | ParameterTypeNames () |
| return a vector containing the ParameterType names More... | |
| ParameterType | ParameterTypeCast (const int parameterTypeIndex) |
| cast an enum of type ParameterType from its index More... | |
| ParameterType | ParameterTypeCast (const std::string parameterTypeName) |
| cast an enum of type ParameterType from its name More... | |
| std::vector< ParameterType > | ParameterTypeCast (const std::vector< int > parameterTypeIndeces) |
| cast an enum of type ParameterType from indeces More... | |
| std::vector< ParameterType > | ParameterTypeCast (const std::vector< std::string > parameterTypeNames) |
| cast enums of type ParameterType from thier names More... | |
| std::vector< std::string > | SamplerTypeNames () |
| return a vector containing the SamplerType names More... | |
| SamplerType | SamplerTypeCast (const int samplerTypeIndex) |
| cast an enum of type SamplerType from its index More... | |
| SamplerType | SamplerTypeCast (const std::string samplerTypeName) |
| cast an enum of type SamplerType from its name More... | |
| std::vector< SamplerType > | SamplerTypeCast (const std::vector< int > samplerTypeIndeces) |
| cast an enum of type SamplerType from indeces More... | |
| std::vector< SamplerType > | SamplerTypeCast (const std::vector< std::string > samplerTypeNames) |
| cast enums of type SamplerType from their names More... | |
log-likelihood functions | |
| double | LogLikelihood_Gaussian_combined (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| Gaussian log-likelihood. More... | |
| double | LogLikelihood_Poissonian_combined (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| Poissonian log-likelihood. More... | |
| double | LogLikelihood_Poissonian_SSC_combined (std::vector< double > &likelihood_parameter, const std::shared_ptr< void > input) |
| Poissonian log-likelihood with super-sample covariance. More... | |
The namespace of the functions and classes used for statistical analyses
The statistic namespace contains all the functions and classes used for statistical analyes
|
strong |
the type of likelihood function
| Enumerator | |
|---|---|
| _NotSet_ | not set |
| _Gaussian_Error_ | Gaussian likelihood error. |
| _Gaussian_Covariance_ | Gaussian likelihood covariance. |
| _Poissonian_ | Poissonian likelihood. |
| _UserDefined_ | Likelihood function defined by the user. |
Definition at line 51 of file LikelihoodFunction.h.
|
strong |
the parameter type
| Enumerator | |
|---|---|
| _Base_ | base parameter |
| _Derived_ | derived parameter |
| _Correlated_ | correlated parameters |
Definition at line 48 of file ModelParameters.h.
|
strong |
|
inline |
cast an enum of type LikelihoodType from its index
| likelihoodTypeIndex | the likelihoodType index |
Definition at line 84 of file LikelihoodFunction.h.
|
inline |
cast an enum of type LikelihoodType from its name
| likelihoodTypeName | the likelihoodType name |
Definition at line 93 of file LikelihoodFunction.h.
|
inline |
cast an enum of type LikelihoodType from indeces
| likelihoodTypeIndeces | the likelihoodType indeces |
Definition at line 102 of file LikelihoodFunction.h.
|
inline |
cast enums of type LikelihoodType from thier names
| likelihoodTypeNames | the likelihoodType names |
Definition at line 111 of file LikelihoodFunction.h.
|
inline |
return a vector containing the LikelihoodType names
Definition at line 75 of file LikelihoodFunction.h.
| double cbl::statistics::LogLikelihood_1D_interpolated | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the loglikelihood on a grid
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 104 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_2D_interpolated | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the loglikelihood on a grid
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 119 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Gaussian_1D_covariance | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the gaussian loglikelihood
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 157 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Gaussian_1D_error | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the Gaussian log-likelihood
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 134 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Gaussian_2D_error | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the gaussian loglikelihood model with one parameter \( \chi^2 \)
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 189 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Gaussian_combined | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
Gaussian log-likelihood.
| likelihood_parameter | the parameter values set in the modelling |
| input | fixed parameters |
Definition at line 1279 of file CombinedPosterior.cpp.
| double cbl::statistics::LogLikelihood_Poissonian_1D_ | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the poissonian loglikelihood
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 211 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Poissonian_2D_ | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
function to compute the poissonian loglikelihood
| likelihood_parameter | the parameters of the model |
| input | pointer to an object of type STR_params |
Definition at line 233 of file LikelihoodFunction.cpp.
| double cbl::statistics::LogLikelihood_Poissonian_combined | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
Poissonian log-likelihood.
| likelihood_parameter | the parameter values set in the modelling |
| input | fixed parameters |
Definition at line 1327 of file CombinedPosterior.cpp.
| double cbl::statistics::LogLikelihood_Poissonian_SSC_combined | ( | std::vector< double > & | likelihood_parameter, |
| const std::shared_ptr< void > | input | ||
| ) |
Poissonian log-likelihood with super-sample covariance.
| likelihood_parameter | the parameter values set in the modelling |
| input | fixed parameters |
Definition at line 1364 of file CombinedPosterior.cpp.
|
inline |
cast an enum of type ParameterType from its index
| parameterTypeIndex | the parameterType index |
Definition at line 73 of file ModelParameters.h.
|
inline |
cast an enum of type ParameterType from its name
| parameterTypeName | the parameterType name |
Definition at line 81 of file ModelParameters.h.
|
inline |
cast an enum of type ParameterType from indeces
| parameterTypeIndeces | the parameterType indeces |
Definition at line 89 of file ModelParameters.h.
|
inline |
cast enums of type ParameterType from thier names
| parameterTypeNames | the parameterType names |
Definition at line 97 of file ModelParameters.h.
|
inline |
return a vector containing the ParameterType names
Definition at line 65 of file ModelParameters.h.
|
inline |
|
inline |
|
inline |
|
inline |