Changeset 948 for library/bdm/stat/exp_family.h
- Timestamp:
- 05/18/10 16:54:25 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/exp_family.h
r944 r948 262 262 SHAREDPTR2 ( enorm, fsqmat ); 263 263 264 //! \class bdm::egauss 265 //!\brief Gaussian (Normal) distribution. Same as enorm<fsqmat>. 264 266 typedef enorm<ldmat> egauss; 265 267 UIREGISTER(egauss); … … 991 993 class = 'mlnorm<ldmat>', (OR) 'mlnorm<chmat>', (OR) 'mlnorm<fsqmat>'; 992 994 A = []; // matrix or vector of appropriate dimension 993 const = []; // vector of constant term994 995 R = []; // square matrix of appropriate dimension 996 --- optional --- 997 const = zeros(A.rows); // vector of constant term 995 998 \endcode 996 999 */ … … 999 1002 1000 1003 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); 1002 1005 mat R0; 1003 1006 UI::get ( R0, set, "R", UI::compulsory ); … … 1013 1016 void validate() { 1014 1017 pdf_internal<TEpdf<sq_T> >::validate(); 1018 if (mu_const.length()==0) { // default in from_setting 1019 mu_const=zeros(A.rows()); 1020 } 1015 1021 bdm_assert ( A.rows() == mu_const.length(), "mlnorm: A vs. mu mismatch" ); 1016 1022 bdm_assert ( A.rows() == _R().rows(), "mlnorm: A vs. R mismatch" ); … … 1025 1031 UIREGISTER2 ( mlnorm, chmat ); 1026 1032 SHAREDPTR2 ( mlnorm, chmat ); 1033 1034 //! \class mlgauss 1035 //!\brief Normal distribution with linear function of mean value. Same as mlnorm<fsqmat>. 1036 typedef mlnorm<fsqmat> mlgauss; 1037 UIREGISTER(mlgauss); 1027 1038 1028 1039 //! pdf with general function for mean value