Changeset 943 for applications/bdmtoolbox
- Timestamp:
- 05/16/10 23:13:02 (14 years ago)
- Location:
- applications/bdmtoolbox
- Files:
-
- 1 removed
- 9 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/epdf_covariance.cpp
r937 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/epdf_evallog_mat.cpp
r937 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/epdf_marginal.cpp
r937 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/epdf_mean.cpp
r925 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/epdf_sample_mat.cpp
r937 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/epdf_variance.cpp
r937 r943 12 12 #ifdef MEX 13 13 #include <mex/mex_parser.h> 14 #include "mexPdf.h"14 #include <mex/mex_pdf.h> 15 15 16 16 void mexFunction ( int n_output, mxArray *output[], int n_input, const mxArray *input[] ) { -
applications/bdmtoolbox/mex/mex_classes/mexBM.m
r937 r943 8 8 methods 9 9 function validate(p) 10 if size(p.mu)<1 & (size(p.b)<1) 11 error('incompatible mu and b'); 12 end 10 % checks if all paramateres match 13 11 end 14 12 function dims=dimensions(p) 15 13 %please fill 16 [size_of_posterior size_of_data size_of_condition] 14 %dims = [size_of_posterior size_of_data size_of_condition] 15 dims = [0,0,0] % 17 16 end 18 17 function obj=bayes(obj,dt,cond) 19 18 % transform old estimate into new estimate 20 19 end 21 function p= posterior(obj)20 function p=epredictor(obj,cond) 22 21 % return posterior density 23 22 end -
applications/bdmtoolbox/mex/mex_classes/mexEpdf.m
r937 r943 1 1 classdef mexEpdf 2 2 properties 3 rv =RV; %empty description add some valid RV when needed3 rv=RV; %empty description add some valid RV when needed 4 4 end 5 5 methods … … 19 19 error('define how to evaluate log of this density at point x') 20 20 end 21 22 %%% default function %%% 23 21 24 function l=evallog_nn(p,x) 22 25 % define how to evaluate non-normalized log of this density at point x … … 24 27 evallog(p,x); 25 28 end 26 29 function r=get_rv(p) 30 r=p.rv; 31 end 27 32 end 28 33 end -
applications/bdmtoolbox/tutorial/userguide/epdfds_example.m
r934 r943 4 4 U.high = 1; 5 5 U.low = -1; 6 U.rv.class='RV'; 7 U.rv.names={'a'}; 6 U.rv = RV('a',1); 7 8 f.class = 'mexEpdf'; 9 f.object = mexLaplace; 10 f.object.mu =12; 11 f.object.b = 1; 12 f.object.rv = RV('b',1); 13 8 14 9 15 DS.class='EpdfDS'; 10 DS.epdf = U;16 DS.epdf =f; %U 11 17 12 18 experiment.ndat=10; … … 14 20 M=simulator(DS,experiment); 15 21 16 M.DS_dt_ a22 M.DS_dt_b