Changeset 735
- Timestamp:
- 11/24/09 00:08:40 (15 years ago)
- Files:
-
- 2 added
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/CMakeLists.txt
r733 r735 22 22 MEX(epdf_sample_mat) 23 23 MEX(lqg_redesign) 24 MEX(mixef_init) -
library/bdm/base/user_info.cpp
r728 r735 310 310 from_setting ( matrix, link.result ); 311 311 312 if ( matrix.cols() != 1 && matrix.rows() != 1 )312 if ( matrix.cols() != 1 && matrix.rows() != 1 && matrix.cols()!=0) 313 313 throw UISettingException ( "UIException: the vector length is invalid, it seems to be rather a matrix.", link.result ); 314 314 -
library/bdm/estim/mixtures.cpp
r682 r735 5 5 6 6 7 void MixEF::init ( BMEF* Com0, const mat &Data, int c ) {7 void MixEF::init ( BMEF* Com0, const mat &Data, const int c ) { 8 8 //prepare sizes 9 9 Coms.set_size ( c ); … … 38 38 delete est; 39 39 build_est(); 40 41 40 } 42 41 -
library/bdm/estim/mixtures.h
r682 r735 99 99 //! \param Data Data on which the initialization will be done 100 100 //! \param c Initial number of components, default=5 101 void init ( BMEF* Com0, const mat &Data, int c = 5 );101 void init ( BMEF* Com0, const mat &Data, const int c = 5 ); 102 102 //Destructor 103 103 ~MixEF() { … … 130 130 method = M; 131 131 } 132 133 void to_setting(Setting &set) const{ 134 UI::save(Coms,set,"Coms"); 135 Setting &wei=set.add("weights",Setting::TypeGroup); 136 weights.to_setting(wei); 137 } 132 138 }; 133 139 -
library/bdm/stat/exp_family.h
r730 r735 507 507 if (evalll) {last_lognc = est.lognc();} 508 508 } 509 void to_setting(Setting &set) const{ 510 BMEF::to_setting(set); 511 Setting& prior= set.add("prior", Setting::TypeGroup); 512 est.to_setting(prior); 513 } 509 514 }; 510 515