comparison toolboxes/FullBNT-1.0.7/bnt/potentials/@cpot/cpot.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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');