Show
Ignore:
Timestamp:
11/24/09 00:08:40 (14 years ago)
Author:
smidl
Message:

Initial implementation of mixef.init() -- does not work due to missing to_setting

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/mixtures.h

    r682 r735  
    9999        //! \param Data Data on which the initialization will be done 
    100100        //! \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 ); 
    102102        //Destructor 
    103103        ~MixEF() { 
     
    130130                method = M; 
    131131        } 
     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        } 
    132138}; 
    133139