Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/bnt/potentials/@mpot/mpot.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function pot = mpot(members, sizes, logp, mu, Sigma) | |
2 % MPOT Make a moment Gaussian potential. | |
3 % pot = mpot(members, sizes, logp, mu, Sigma) | |
4 % | |
5 % All params default to 0 if omitted. | |
6 | |
7 n = sum(sizes); | |
8 if nargin < 3, logp = 0; end | |
9 if nargin < 4, mu = zeros(n,1); end | |
10 if nargin < 5, Sigma = zeros(n,n); end | |
11 | |
12 pot.domain = members; | |
13 pot.sizes = sizes; | |
14 pot.logp = logp; | |
15 pot.mu = mu; | |
16 pot.Sigma = Sigma;zeros(n,n); | |
17 pot = class(pot, 'mpot'); |