Show
Ignore:
Timestamp:
10/19/09 22:24:45 (15 years ago)
Author:
smidl
Message:

Compilation and minor extensions

Files:
1 modified

Legend:

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

    r660 r665  
    9393        } 
    9494        //! bayes I - generate samples and add their weights to lls 
    95         virtual void bayes_gensmp(); 
     95        virtual void bayes_gensmp(const vec &ut); 
    9696        //! bayes II - compute weights of the  
    9797        virtual void bayes_weights(); 
     
    124124        */ 
    125125        void from_setting(const Setting &set){ 
     126                BM::from_setting(set); 
    126127                par = UI::build<mpdf>(set,"parameter_pdf",UI::compulsory); 
    127128                obs = UI::build<mpdf>(set,"observation_pdf",UI::compulsory); 
     
    137138                 
    138139                u.add(obs_u); // join both u, and check if they do not overlap 
    139                  
     140 
    140141                set_drv(concat(obs->_rv(),u) ); 
    141142        } 
     
    163164                        res_threshold=0.5; 
    164165                } 
     166                validate(); 
    165167        } 
    166168        //! load prior information from set and set internal structures accordingly 
     
    172174                        est=*test_emp; 
    173175                } else { 
    174                         int n; 
     176                        //int n; 
    175177                        if (!UI::get(n,set,"n",UI::optional)){n=10;} 
    176178                        // sample from prior 
    177179                        set_statistics(ones(n)/n, *pri); 
    178180                } 
     181                n = est._w().length(); 
    179182                //validate(); 
    180183        }