about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/nethelp3.3/dist2.htm
diff options
context:
space:
mode:
authorziejd22017-09-28 15:04:40 -0500
committerziejd22017-09-28 15:04:40 -0500
commit8070dc963753142bb86c4ed698d91fd623ed28e7 (patch)
treed0f6dd8fc46a49b819aa55c1a90faa14d8448883 /sourcecodes/bnt-master/nethelp3.3/dist2.htm
parent7cc31810d53176e805532b2789955f4eedbce6bb (diff)
downloadBNW-8070dc963753142bb86c4ed698d91fd623ed28e7.tar.gz
BNW using Octave instead of Matlab.
This version of BNW should perform the same as the original version. The only difference is that it uses Octave instead of Matlab when running BayesNet Toolbox during parameter learning.

I am calling this BNW_1.02. It can be accessed at:
compbio.uthsc.edu/BNW_1.02
Diffstat (limited to 'sourcecodes/bnt-master/nethelp3.3/dist2.htm')
-rw-r--r--sourcecodes/bnt-master/nethelp3.3/dist2.htm57
1 files changed, 57 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/nethelp3.3/dist2.htm b/sourcecodes/bnt-master/nethelp3.3/dist2.htm
new file mode 100644
index 00000000..80dd82b9
--- /dev/null
+++ b/sourcecodes/bnt-master/nethelp3.3/dist2.htm
@@ -0,0 +1,57 @@
+<html>
+<head>
+<title>
+Netlab Reference Manual dist2
+</title>
+</head>
+<body>
+<H1> dist2
+</H1>
+<h2>
+Purpose
+</h2>
+Calculates squared distance between two sets of points.
+
+<p><h2>
+Synopsis
+</h2>
+<PRE>
+d = dist2(x, c)
+</PRE>
+
+
+<p><h2>
+Description
+</h2>
+<CODE>d = dist2(x, c)</CODE> takes two matrices of vectors and calculates the
+squared Euclidean distance between them.  Both matrices must be of the
+same column dimension.  If <CODE>x</CODE> has <CODE>m</CODE> rows and <CODE>n</CODE> columns, and
+<CODE>c</CODE> has <CODE>l</CODE> rows and <CODE>n</CODE> columns, then the result has
+<CODE>m</CODE> rows and <CODE>l</CODE> columns.  The <CODE>i, j</CODE>th entry is the 
+squared distance from the <CODE>i</CODE>th row of <CODE>x</CODE> to the <CODE>j</CODE>th
+row of <CODE>c</CODE>.
+
+<p><h2>
+Example
+</h2>
+The following code is used in <CODE>rbffwd</CODE> to calculate the activation of
+a thin plate spline function.
+<PRE>
+
+n2 = dist2(x, c);
+z = log(n2.^(n2.^2));
+</PRE>
+
+
+<p><h2>
+See Also
+</h2>
+<CODE><a href="gmmactiv.htm">gmmactiv</a></CODE>, <CODE><a href="kmeans.htm">kmeans</a></CODE>, <CODE><a href="rbffwd.htm">rbffwd</a></CODE><hr>
+<b>Pages:</b>
+<a href="index.htm">Index</a>
+<hr>
+<p>Copyright (c) Ian T Nabney (1996-9)
+
+
+</body>
+</html>
\ No newline at end of file