Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.cpp
r254 r262 1 #include <itpp/itbase.h> 1 2 2 #include "libBM.h" 3 3 #include "../itpp_ext.h" 4 4 5 //! Space of basic BDM structures 5 6 namespace bdm { 6 7 -
bdm/stat/libEF.cpp
r254 r262 1 #include <itpp/itbase.h> 1 2 2 #include <itpp/base/bessel.h> 3 3 #include "libEF.h" … … 87 87 88 88 } 89 90 vec egiw::variance() const { 91 92 if ( xdim==1 ) { 93 int l=V.rows(); 94 const ldmat tmp(V,linspace(1,l-1)); 95 ldmat itmp(l); 96 tmp.inv(itmp); 97 double cove = V._D() ( 0 ) / ( nu -nPsi -2*xdim -2 ); 98 99 vec var(l); 100 var.set_subvector(0,diag(itmp.to_mat())*cove); 101 var(l-1)=cove*cove/( nu -nPsi -2*xdim -2 ); 102 return var; 103 } 104 else {it_error("not implemneted"); return vec(0);} 105 } 106 89 107 void egiw::mean_mat ( mat &M, mat&R ) const { 90 108 const mat &L= V._L(); -
bdm/stat/libEF.h
r256 r262 14 14 #define EF_H 15 15 16 #include <itpp/itbase.h> 17 #include "../math/libDC.h" 16 18 17 #include "libBM.h" 19 #include "../ itpp_ext.h"18 #include "../math/chmat.h" 20 19 //#include <std> 21 20 … … 193 192 vec sample() const; 194 193 vec mean() const; 195 vec variance() const {it_error("Not implemented"); return vec(0);};194 vec variance() const; 196 195 void mean_mat ( mat &M, mat&R ) const; 197 196 //! In this instance, val= [theta, r]. For multivariate instances, it is stored columnwise val = [theta_1 theta_2 ... r_1 r_2 ] … … 466 465 467 466 /*! (Approximate) Student t density with linear function of mean value 467 468 The internal epdf of this class is of the type of a Gaussian (enorm). 469 However, each conditioning is trying to assure the best possible approximation by taking into account the zeta function. See [] for reference. 470 471 Perhaps a moment-matching technique? 468 472 */ 469 473 class mlstudent : public mlnorm<ldmat> { -
bdm/stat/libFN.cpp
r254 r262 1 #include <itpp/itbase.h> 1 2 2 #include "libFN.h" 3 3 -
bdm/stat/libFN.h
r254 r262 13 13 #define FN_H 14 14 15 #include <itpp/itbase.h>16 15 #include "libBM.h" 17 16 -
bdm/stat/loggers.cpp
r254 r262 1 #include <itpp/itbase.h> 1 2 2 #include "loggers.h" 3 3 #include "../osutils.h"