root/applications/bdmtoolbox/doc/local/21mex_bdm.dox @ 1044

Revision 1044, 1.0 kB (checked in by smidl, 14 years ago)

Tutorial moved to bdmtoolbox

Line 
1/*!
2\page mex_bdm  BDMToolbox Development - combining Matlab classes and BDM classes
3
4The classes written in Matlab can be combined with standard BDM classes via corresponding C++ classes with equal names, i.e. mexBM.m is accepted by C++ class mexBM
5
6The class bdm::mexEpdf has the following Matlab structure:
7\code
8class = 'mexEpdf';
9object = any_mexEpdf_object;
10\endcode
11
12This clas acts as an interface between BDM objects of type bdm::epdf and Matlab objects of type mexEpdf.
13
14Example:
15\code
16clear all
17
18f.class = 'mexEpdf';
19f.object = mexLaplace;
20f.object.mu =12;
21f.object.b = 1;
22f.object.rv = RV('b',1);
23
24
25DS.class='EpdfDS';
26DS.epdf =f; %U
27
28experiment.ndat=10;
29
30M=simulator(DS,experiment);
31
32M.DS_dt_b
33\endcode
34
35Here, Matlab class mexLaplace is created and plugged in as attribute \c object of bdm class 'mexEpdf'.
36Class bdm::EpdfDS accepts this kind of object and perfroms its task, i.e. it generates samples from the density.
37
38
39*/
Note: See TracBrowser for help on using the browser.