Changeset 378 for bdm/stat/libEF.h

Show
Ignore:
Timestamp:
06/17/09 23:53:08 (15 years ago)
Author:
smidl
Message:

details and compositepdf changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libEF.h

    r377 r378  
    125125                        enorm ( const vec &mu,const sq_T &R ) {set_parameters ( mu,R );} 
    126126                        void set_parameters ( const vec &mu,const sq_T &R ); 
     127                        void from_setting(const Setting &root); 
    127128                        //!@} 
    128129 
     
    141142//      mlnorm<sq_T>* condition ( const RV &rvn ) const ; <=========== fails to cmpile. Why? 
    142143                        mpdf* condition ( const RV &rvn ) const ; 
    143         enorm<sq_T>* marginal ( const RV &rv ) const; 
     144                        enorm<sq_T>* marginal ( const RV &rv ) const; 
    144145//                      epdf* marginal ( const RV &rv ) const; 
    145146                        //!@} 
     
    791792         only allow diagonal covariances! 
    792793 
    793         Density of the form \f$ \log(x)\sim \mathcal{N}(\mu,\sigma^2), i.e. 
     794        Density of the form \f$ \log(x)\sim \mathcal{N}(\mu,\sigma^2) \f$ , i.e. 
    794795        \f[ 
    795796        x \sim \frac{1}{x\sigma\sqrt{2\pi}}\exp{-\frac{1}{2\sigma^2}(\log(x)-\mu)} 
     
    10171018                        //!@{ 
    10181019                        eEmp ( ) :epdf ( ),w ( ),samples ( ) {}; 
     1020                        //! copy constructor 
    10191021                        eEmp ( const eEmp &e ) : epdf ( e ), w ( e.w ), samples ( e.samples ) {}; 
    10201022                        //!@} 
     
    10871089 
    10881090        template<class sq_T> 
     1091        void enorm<sq_T>::from_setting(const Setting &root){ 
     1092                vec mu; 
     1093                UI::get(mu,root,"mu"); 
     1094                mat R; 
     1095                UI::get(R,root,"R"); 
     1096                set_parameters(mu,R); 
     1097                 
     1098                RV* r = UI::build<RV>(root,"rv"); 
     1099                set_rv(*r);  
     1100                delete r; 
     1101        } 
     1102 
     1103        template<class sq_T> 
    10891104        void enorm<sq_T>::dupdate ( mat &v, double nu ) 
    10901105        {