comparison toolboxes/FullBNT-1.0.7/bnt/potentials/@cpot/cpot.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 = cpot(members, sizes, g, h, K)
2 % CPOT Make a canonical Gaussian potential.
3 % pot = cpot(members, sizes, g, h, K)
4 %
5 % All params default to 0 if omitted.
6
7 n = sum(sizes);
8 if nargin < 3, g = 0; end
9 if nargin < 4, h = zeros(n,1); end
10 if nargin < 5, K = zeros(n,n); end
11
12 pot.domain = members;
13 pot.sizes = sizes(:)';
14 pot.g = g;
15 pot.h = h;
16 pot.K = K;
17 pot = class(pot, 'cpot');