34 #include <itpp/itexports.h>
61 double apriori_mutual_info(
const double &in_sigma2A,
65 _gaussian_fct = Gaussian_Fct(in_sigma2A);
66 return 1.0-
itpp::quad(_gaussian_fct, -lim, lim);
72 itpp::vec generate_apriori_info(
const itpp::bvec &bits)
75 double sigma2A = _gaussian_fct.sigma();
82 double extrinsic_mutual_info(
const itpp::vec &obs,
83 const itpp::bvec &cond,
87 class ITPP_EXPORT Gaussian_Fct
91 Gaussian_Fct(): _sigma(0.0){}
92 Gaussian_Fct(
double sigma): _sigma(sigma){}
93 double sigma()
const {
return _sigma;}
94 double operator()(
double x)
const;
96 Gaussian_Fct _gaussian_fct;