Show
Ignore:
Timestamp:
06/09/10 11:50:16 (14 years ago)
Author:
mido
Message:

a small patch of documentation, to be contiuned..

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/stat/exp_family.cpp

    r1033 r1063  
    438438 
    439439void egamma::from_setting ( const Setting &set ) { 
    440                 epdf::from_setting ( set ); // reads rv 
    441                 UI::get ( alpha, set, "alpha", UI::compulsory ); 
    442                 UI::get ( beta, set, "beta", UI::compulsory ); 
    443         } 
     440        epdf::from_setting ( set ); // reads rv 
     441        UI::get ( alpha, set, "alpha", UI::compulsory ); 
     442        UI::get ( beta, set, "beta", UI::compulsory ); 
     443} 
    444444         
    445445void egamma::to_setting ( Setting &set ) const 
     
    675675 
    676676void eEmp::from_setting ( const Setting &set ) { 
    677                 epdf::from_setting( set ); 
     677        epdf::from_setting( set ); 
    678678                 
    679                 UI::get( samples, set, "samples", UI::compulsory ); 
    680                 UI::get ( w, set, "w", UI::compulsory ); 
    681         } 
    682  
    683 void    eEmp::validate (){ 
    684           epdf::validate(); 
    685           bdm_assert (samples.length()==w.length(),"samples and weigths are of different lengths"); 
    686           n = w.length(); 
    687           if (n>0) 
    688                 pdf::dim = samples ( 0 ).length(); 
    689         } 
    690          
    691         void eDirich::from_setting ( const Setting &set ) { 
    692                 epdf::from_setting ( set ); 
    693                 UI::get ( beta, set, "beta", UI::compulsory ); 
    694         } 
     679        UI::get( samples, set, "samples", UI::compulsory ); 
     680        UI::get ( w, set, "w", UI::compulsory ); 
     681} 
     682 
     683void eEmp::validate (){ 
     684        epdf::validate(); 
     685        bdm_assert (samples.length()==w.length(),"samples and weigths are of different lengths"); 
     686        n = w.length(); 
     687        if (n>0) 
     688        pdf::dim = samples ( 0 ).length(); 
     689} 
     690         
     691void eDirich::from_setting ( const Setting &set ) { 
     692        epdf::from_setting ( set ); 
     693        UI::get ( beta, set, "beta", UI::compulsory ); 
     694} 
     695 
    695696void eDirich::validate() { 
    696697                //check rv