Ticket #19 (new task)
Create Matlab offspring of BM
Reported by: | smidl | Owned by: | miro |
---|---|---|---|
Priority: | major | Milestone: | Mexify BDM |
Component: | bdm core | Version: | |
Keywords: | Cc: | tynovsky@…, smidl@… |
Description
Since object hierarchy does not prescribe any specific storage type, we may easily build a mex object that performs all its actions by calling matlab via mxCallMatlab.
For example Calass mexBM: public BM{}: attributes
mxArray O; // structure with all needed info string name;
methods
constructor expects to get O on its input (from UImexBM). //If O is wrong, bayes will fail
bayes calls 'name_bayes' which takes O and returns O // name_bayes should return ll which has to be copied into BM::ll
_epdf constructs new object of given type and copies appropriate fields from O
In this way, we will be able to call matlab functions from Matlab.