Changeset 809
- Timestamp:
- 02/21/10 20:58:32 (15 years ago)
- Files:
-
- 1 added
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/CMakeLists.txt
r803 r809 28 28 MEX(epdf_sample_mat) 29 29 MEX(epdf_evallog_mat) 30 31 MEX(enorm_bhattacharyya) 32 30 33 MEX(lqg_redesign) 31 34 MEX(mixef_init) -
applications/bdmtoolbox/mex/epdf_2dplot.m
r803 r809 31 31 Z = reshape(exp(v), points(1), points(2)); 32 32 33 if 133 if 0 34 34 vol = prod(steps./(points-1)); 35 35 nc = sum(sum(Z))*vol -
library/bdm/stat/exp_family.h
r802 r809 199 199 void dupdate ( mat &v, double nu = 1.0 ); 200 200 201 //! evaluate bhattacharya distance 202 double bhattacharyya(const enorm<sq_T> &e2){ 203 bdm_assert(dim == e2.dimension(), "enorms of differnt dimensions"); 204 sq_T P=R; 205 P.add(e2._R()); 206 207 double tmp = 0.125*P.invqform(mu - e2._mu()) + 0.5*(P.logdet() - 0.5*(R.logdet() + e2._R().logdet())); 208 return tmp; 209 } 210 201 211 vec sample() const; 202 212