35 double 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));
Mat< Num_T > elem_div(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Element wise division of two matrices.
const double m_2pi
Constant 2*Pi.
Histogram computation class.
ivec find(const bvec &invector)
Return a integer vector with indicies where bvec == 1.
Mat< Num_T > elem_mult(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Element wise multiplication of two matrices.
void update(Num_T value)
Histogram update.
T sum(const Vec< T > &v)
Sum of all elements in the vector.
T min(const Vec< T > &in)
Minimum value of vector.
vec exp(const vec &x)
Exp of the elements of a vector x.
vec log2(const vec &x)
log-2 of the elements
T max(const Vec< T > &v)
Maximum value of vector.
double extrinsic_mutual_info(const itpp::vec &obs, const itpp::bvec &cond, const int &N=100)
Computes the extrinsic mutual information.
Definitions for EXtrinsic Information Transfer (EXIT) chart class.
IT++ compatibility types and functions.
vec sqr(const cvec &data)
Absolute square of elements.
Binary arithmetic (boolean) class.
vec get_pdf() const
Experimental Probability Density Function (PDF) computation.
vec sqrt(const vec &x)
Square root of the elements.
Histogram class - header file.
void reset()
Bins reset, so accumulation can be restarted.