RandLib 2.0.0
Probability distributions, fitting, and heavy-tail tools for C++20
Loading...
Searching...
No Matches
bayes.hpp File Reference
Include dependency graph for bayes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  randlib::detail::BayesModel< NormalRand< Real >, NormalInverseGammaRand< Real > >
 
struct  randlib::detail::BayesModel< LogNormalRand< Real >, NormalInverseGammaRand< Real > >
 
struct  randlib::detail::BayesModel< ExponentialRand< Real >, GammaRand< Real > >
 
struct  randlib::detail::BayesModel< PoissonRand< Int >, GammaRand< double > >
 
struct  randlib::detail::ConditionalBayesModel< NormalRand< Real >, NormalRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< NormalRand< Real >, InverseGammaRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< LogNormalRand< Real >, NormalRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< LogNormalRand< Real >, InverseGammaRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< BinomialRand< Int >, BetaRand< double > >
 
struct  randlib::detail::ConditionalBayesModel< NegativeBinomialRand< Int, Shape >, BetaRand< double > >
 
struct  randlib::detail::ConditionalBayesModel< WeibullRand< Real >, InverseGammaRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< ParetoRand< Real >, GammaRand< Real > >
 
struct  randlib::detail::ConditionalBayesModel< UniformRand< Real >, ParetoRand< Real > >
 

Namespaces

namespace  randlib
 
namespace  randlib::detail
 

Concepts

concept  randlib::detail::ConjugateModel
 
concept  randlib::detail::ConditionalConjugateModel
 

Functions

template<class Distribution , class Prior >
requires detail::ConjugateModel<Distribution, Prior>
auto randlib::fit_bayes (std::span< const typename Distribution::value_type > sample, const Prior &prior)
 
template<class Distribution , std::ranges::contiguous_range Range, class Prior >
requires std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, typename Distribution::value_type> && detail::ConjugateModel<Distribution, Prior>
auto randlib::fit_bayes (const Range &sample, const Prior &prior)
 
template<class Distribution , std::ranges::contiguous_range Range, class Prior , class Fixed >
requires std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, typename Distribution::value_type> && detail::ConditionalConjugateModel<Distribution, Prior, Fixed>
auto randlib::fit_bayes (const Range &sample, const Prior &prior, Fixed fixed)
 
template<std::ranges::contiguous_range Range, std::floating_point Real>
requires std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, Real>
auto randlib::fit_bayes (const Range &sample, const NormalInverseGammaRand< Real > &prior)
 
template<std::ranges::contiguous_range Range, std::floating_point Real>
requires std::same_as<std::remove_cv_t<std::ranges::range_value_t<Range>>, Real>
auto randlib::fit_bayes (const Range &sample, const GammaRand< Real > &prior)
 
template<std::ranges::contiguous_range Range>
requires std::integral<std::remove_cv_t<std::ranges::range_value_t<Range>>>
auto randlib::fit_bayes (const Range &sample, const GammaRand< double > &prior)