35double EXIT::Gaussian_Fct::operator()(
double x)
const
47 itpp::vec cond_obs = obs(idx);
50 itpp::vec left_pdf = hist.
get_pdf();
58 itpp::vec right_pdf = hist.
get_pdf();
59 itpp::ivec right_int =
itpp::find(right_pdf!=0);
63 double IE =
itpp::sum(left_half)-0.5*(left_half(0)+left_half(left_half.length()-1));
65 IE +=
itpp::sum(right_half)-0.5*(right_half(0)+right_half(right_half.length()-1));
double extrinsic_mutual_info(const itpp::vec &obs, const itpp::bvec &cond, const int &N=100)
Computes the extrinsic mutual information.
Histogram computation class.
void reset()
Bins reset, so accumulation can be restarted.
Binary arithmetic (boolean) class.
Definitions for EXtrinsic Information Transfer (EXIT) chart class.
vec get_pdf() const
Experimental Probability Density Function (PDF) computation.
void update(Num_T value)
Histogram update.
vec log2(const vec &x)
log-2 of the elements
T sum(const Vec< T > &v)
Sum of all elements in the vector.
T min(const Vec< T > &in)
Minimum value of vector.
T max(const Vec< T > &v)
Maximum value of vector.
ivec find(const bvec &invector)
Return a integer vector with indicies where bvec == 1.
vec sqr(const cvec &data)
Absolute square of elements.
Histogram class - header file.
IT++ compatibility types and functions.
const double m_2pi
Constant 2*Pi.
Mat< Num_T > elem_div(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Element wise division of two matrices.
Mat< Num_T > elem_mult(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Element wise multiplication of two matrices.