root/applications/bdmtoolbox/mex/mex_classes/mexEpdf.m @ 937

Revision 937, 0.8 kB (checked in by smidl, 14 years ago)

matlab class extension for pdf

Line 
1classdef mexEpdf
2    properties
3            rv = RV; %empty description add some valid RV when needed
4    end
5    methods
6        function m=mean(p)
7            error('define how to compute mean')
8        end
9        function validate(p)
10            error('check if the density is consistent')
11        end
12        function dim=dimension(p)
13            error('return dimension of the density')
14        end
15        function v=variance(p)
16            error('define how to compute mean')
17        end
18        function l=evallog(p,x)
19            error('define how to evaluate log of this density at point x')
20        end
21        function l=evallog_nn(p,x)
22            % define how to evaluate non-normalized log of this density at point x
23            % makes sense if faster than normalized
24            evallog(p,x);
25        end
26
27    end
28end
Note: See TracBrowser for help on using the browser.