Revision 944, 1.2 kB
(checked in by smidl, 15 years ago)
|
Doc + new examples
|
Line | |
---|
1 | classdef mexBM |
---|
2 | properties |
---|
3 | % description of internal variables |
---|
4 | rv=RV |
---|
5 | rvc=RV |
---|
6 | rvy=RV |
---|
7 | % log of evidence (marginal likelihood) potentially computed by the |
---|
8 | % bayes rule for one step |
---|
9 | log_evidence |
---|
10 | % posterior density - offspring of mexEpdf! |
---|
11 | apost_pdf |
---|
12 | % |
---|
13 | end |
---|
14 | |
---|
15 | methods |
---|
16 | function p=validate(p) |
---|
17 | % checks if all paramateres match |
---|
18 | end |
---|
19 | function dims=dimensions(p) |
---|
20 | %please fill |
---|
21 | %dims = [size_of_posterior size_of_data size_of_condition] |
---|
22 | dims = [0,0,0] % |
---|
23 | end |
---|
24 | function obj=bayes(obj,dt,cond) |
---|
25 | % transform old estimate into new estimate |
---|
26 | end |
---|
27 | function p=epredictor(obj,cond) |
---|
28 | % return posterior density |
---|
29 | end |
---|
30 | |
---|
31 | %%%%%%%% default functions %%%%%%%%%%%%%% |
---|
32 | function r = get_rv(obj) |
---|
33 | r=obj.rv; |
---|
34 | end |
---|
35 | function r = get_rvc(obj) |
---|
36 | r=obj.rvc; |
---|
37 | end |
---|
38 | function r = get_rvy(obj) |
---|
39 | r=obj.rvy; |
---|
40 | end |
---|
41 | function ev = logevidence(obj) |
---|
42 | ev = obj.log_evidence; |
---|
43 | end |
---|
44 | function post=posterior(obj); |
---|
45 | post = obj.apost_pdf; |
---|
46 | end |
---|
47 | end |
---|
48 | end |
---|