Show
Ignore:
Timestamp:
05/18/10 16:54:25 (14 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

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

    r944 r948  
    262262SHAREDPTR2 ( enorm, fsqmat ); 
    263263 
     264//! \class bdm::egauss  
     265//!\brief Gaussian (Normal) distribution. Same as enorm<fsqmat>. 
    264266typedef enorm<ldmat> egauss; 
    265267UIREGISTER(egauss); 
     
    991993        class = 'mlnorm<ldmat>', (OR) 'mlnorm<chmat>', (OR) 'mlnorm<fsqmat>'; 
    992994        A     = [];                  // matrix or vector of appropriate dimension 
    993         const = [];                  // vector of constant term 
    994995        R     = [];                  // square matrix of appropriate dimension 
     996        --- optional --- 
     997        const = zeros(A.rows);       // vector of constant term 
    995998        \endcode 
    996999        */ 
     
    9991002 
    10001003                UI::get ( A, set, "A", UI::compulsory ); 
    1001                 UI::get ( mu_const, set, "const", UI::compulsory ); 
     1004                UI::get ( mu_const, set, "const", UI::optional); 
    10021005                mat R0; 
    10031006                UI::get ( R0, set, "R", UI::compulsory ); 
     
    10131016        void validate() { 
    10141017                pdf_internal<TEpdf<sq_T> >::validate(); 
     1018                if (mu_const.length()==0) { // default in from_setting 
     1019                        mu_const=zeros(A.rows()); 
     1020                } 
    10151021                bdm_assert ( A.rows() == mu_const.length(), "mlnorm: A vs. mu mismatch" ); 
    10161022                bdm_assert ( A.rows() == _R().rows(), "mlnorm: A vs. R mismatch" ); 
     
    10251031UIREGISTER2 ( mlnorm, chmat ); 
    10261032SHAREDPTR2 ( mlnorm, chmat ); 
     1033 
     1034//! \class mlgauss  
     1035//!\brief Normal distribution with linear function of mean value. Same as mlnorm<fsqmat>. 
     1036typedef mlnorm<fsqmat> mlgauss; 
     1037UIREGISTER(mlgauss); 
    10271038 
    10281039//! pdf with general function for mean value