Class exp_mat (o2scl)

O2scl : Class List

template<class mat_t = const_matrix_view_table<>>
class o2scl::exp_mat

Expectation maximization.

Evaluate interpolation

size_t np

The number of points.

size_t nd_in

The number of dimensions of the inputs.

mat_t data

The copy of the data.

bool data_set

True if the data has been specified.

ubvector weights
ubmatrix resps
ubmatrix means
tensor3 covars
std::vector<prob_dens_mdim_gaussian> pdmg
template<class mat_t>
inline int compute(size_t n_gauss, const mat_t &mean_init)

Perform the interpolation over the first function.

Public Types

typedef boost::numeric::ublas::vector<double> ubvector
typedef boost::numeric::ublas::matrix<double> ubmatrix
typedef boost::numeric::ublas::vector<size_t> ubvector_size_t

Public Functions

inline exp_max()
inline void set_data(size_t n_in, size_t n_points, mat_t &dat)

Initialize the data The object vecs should be a matrix with a first index of size n_in+n_out and a second index of size n_points. It may have be any type which allows the use of operator(,) and std::swap.

inline void get_data(size_t &n_in, size_t &n_points, mat_t &dat)

Get the data used for interpolation.

Public Members

int verbose

Verbosity parameter (default 0)