Changeset 797
- Timestamp:
- 01/29/10 19:56:54 (15 years ago)
- Files:
-
- 1 added
- 9 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/arena.cpp
r779 r797 27 27 #include <mex/mex_logger.h> 28 28 #include <mex/mex_datasource.h> 29 #include <mex/mex_function.h> 29 30 30 31 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/class_defaults.cpp
r790 r797 16 16 #ifdef MEX 17 17 #include <mex/mex_parser.h> 18 #include <mex/mex_function.h> 18 19 19 20 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/controlloop.cpp
r764 r797 66 66 #include <mex/mex_logger.h> 67 67 #include <mex/mex_datasource.h> 68 #include <mex/mex_function.h> 68 69 69 70 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/estimator.cpp
r760 r797 64 64 #include <mex/mex_logger.h> 65 65 #include <mex/mex_datasource.h> 66 #include <mex/mex_function.h> 66 67 67 68 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/mixef_init.cpp
r756 r797 13 13 #ifdef MEX 14 14 #include <mex/mex_parser.h> 15 #include <mex/mex_function.h> 15 16 16 17 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/simulator.cpp
r756 r797 53 53 #include "mex/mex_logger.h" 54 54 #include "mex/mex_datasource.h" 55 #include "mex/mex_function.h" 55 56 56 57 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
library/bdm/base/bdmbase.h
r795 r797 361 361 }; 362 362 363 //! function substitutes given value into an appropriate position364 virtual void condition ( const vec &val ) {};365 366 363 //! access function 367 364 int dimension() const { … … 371 368 int dimensionc() const { 372 369 return dimc; 370 } 371 void from_setting(const Setting &set){ 372 UI::get(dimy, set, "dim", UI::optional); 373 UI::get(dimc, set, "dimc", UI::optional); 373 374 } 374 375 }; -
library/bdm/estim/ekf_template.h
r766 r797 60 60 }; 61 61 62 // !Extended Kalman filter with unknown parameters in \c IM63 class EKFCh_cond : public EKFCh {64 public:65 void condition ( const vec &val ) {66 pfxu->condition ( val );67 };68 };62 ////!Extended Kalman filter with unknown parameters in \c IM 63 // class EKFCh_cond : public EKFCh { 64 // public: 65 // void condition ( const vec &val ) { 66 // pfxu->condition ( val ); 67 // }; 68 // }; 69 69 70 70 } -
library/bdm/stat/exp_family.h
r796 r797 116 116 } 117 117 }; 118 119 /*! Dirac delta density with predefined transformation 120 121 Density of the type:\f[ f(x_t | y_t) = \delta (x_t - g(y_t)) \f] 122 where \f$ x_t \f$ is the \c rv, \f$ y_t \f$ is the \c rvc and g is a deterministic transformation of class fn. 123 */ 124 class mgdirac: public pdf{ 125 protected: 126 shared_ptr<fnc> g; 127 public: 128 vec samplecond(const vec &cond) { 129 bdm_assert_debug(cond.length()==g->dimensionc(),"given cond in not compatible with g"); 130 vec tmp = g->eval(cond); 131 return tmp; 132 } 133 double evallogcond ( const vec &yt, const vec &cond ){ 134 return std::numeric_limits< double >::max(); 135 } 136 void from_setting(const Setting& set){ 137 pdf::from_setting(set); 138 g=UI::build<fnc>(set,"g",UI::compulsory); 139 validate(); 140 } 141 void to_setting(Setting &set) const{ 142 pdf::to_setting(set); 143 UI::save(g.get(), set, "g"); 144 } 145 void validate() { 146 dim = g->dimension(); 147 dimc = g->dimensionc(); 148 } 149 }; 150 UIREGISTER(mgdirac); 151 118 152 119 153 template<class sq_T, template <typename> class TEpdf>