about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/netlab3.3/mdnpak.m
blob: 47da11a655f7e87b2c4511f24aeb2e8c1304ab00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function w = mdnpak(net)
%MDNPAK	Combines weights and biases into one weights vector.
%
%	Description
%	W = MDNPAK(NET) takes a mixture density network data structure NET
%	and  combines the network weights into a single row vector W.
%
%	See also
%	MDN, MDNUNPAK, MDNFWD, MDNERR, MDNGRAD
%

%	Copyright (c) Ian T Nabney (1996-2001)
%	David J Evans (1998)

errstring = consist(net, 'mdn');
if ~errstring
  error(errstring);
end
w = mlppak(net.mlp);