Changeset 359

Show
Ignore:
Timestamp:
06/08/09 15:38:41 (15 years ago)
Author:
mido
Message:

patch buildu ve windows, nyni je pod winxp/vs9.0 vse v cajku

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/pmsmDS.h

    r357 r359  
    256256        //statistics 
    257257        int dim=IM->dimension(); 
     258 
    258259        vec mu0; 
    259         if (!UI::get( mu0, root, "mu0") ) 
     260        if(root.exists("mu0")) 
     261                        UI::get( mu0, root, "mu0"); 
     262                else 
    260263            mu0=zeros(dim); 
     264 
    261265        mat P0; 
    262         vec dP0; 
    263  
    264         if (UI::get(dP0,root, "dP0") ) 
     266        if(root.exists( "dP0" )) 
     267                { 
     268                        vec dP0;         
     269                        UI::get(dP0,root, "dP0"); 
    265270            P0=diag(dP0); 
    266         else if (!UI::get(P0,root, "P0") ) 
     271                } 
     272                else if (root.exists("P0")) 
     273                        UI::get(P0,root, "P0"); 
     274                else 
    267275            P0=eye(dim); 
    268276 
     
    327335        int dim=IM->dimension(); 
    328336        vec mu0; 
    329         vec dP0; 
     337        if( root.exists( "mu0")) 
     338                        UI::get(mu0, root, "mu0"); 
     339                else 
     340            mu0=zeros(dim); 
     341 
    330342        mat P0; 
    331         if (!UI::get(mu0, root, "mu0")) 
    332             mu0=zeros(dim); 
    333         if (!UI::get( P0, root, "P0" )) 
    334             if (UI::get(dP0, root, "dP0")) 
    335                 P0=diag(dP0); 
    336             else 
    337                 P0=eye(dim); 
     343 
     344                if(root.exists("dP0")) 
     345                { 
     346                        vec dP0;                                 
     347                        UI::get(dP0, root, "dP0"); 
     348                        P0=diag(dP0); 
     349                } 
     350                else if(root.exists("P0")) 
     351                        UI::get( P0, root, "P0" ); 
     352                else 
     353                        P0=eye(dim); 
    338354 
    339355        set_statistics(mu0,P0); 
  • bdm/stat/libBM.h

    r358 r359  
    227227//! Probability density function with numerical statistics, e.g. posterior density. 
    228228 
    229 class epdf :public bdmroot { 
     229class epdf : public bdmroot { 
    230230protected: 
    231231        //! dimension of the random variable 
  • bdm/user_info.h

    r358 r359  
    143143 
    144144 
     145        //! \name Matematical Operations TODO 
     146        //!@{ 
     147 
    145148        //! This methods tries to build a new double matrix  
    146149        static void from_setting( mat& matrix, const Setting &element );         
     
    207210                        from_setting( array_to_load(i), root[i] );  
    208211        } 
     212 
     213          //!@} 
     214 
    209215 
    210216        static void ui_error( string message, const Setting &element );