Changeset 943 for applications/bdmtoolbox/mex/mex_classes
- Timestamp:
- 05/16/10 23:13:02 (15 years ago)
- Location:
- applications/bdmtoolbox/mex/mex_classes
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
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