about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/netlab3.3/mdnpak.m
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/netlab3.3/mdnpak.m')
-rw-r--r--sourcecodes/bnt-master/netlab3.3/mdnpak.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/netlab3.3/mdnpak.m b/sourcecodes/bnt-master/netlab3.3/mdnpak.m
new file mode 100644
index 00000000..47da11a6
--- /dev/null
+++ b/sourcecodes/bnt-master/netlab3.3/mdnpak.m
@@ -0,0 +1,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);