aboutsummaryrefslogtreecommitdiff
path: root/doc/mtx_distance2.pd
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-04-12 09:03:42 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-04-12 09:03:42 +0000
commit7158881a438606662e76a102354bab62c85b3c01 (patch)
tree62eea99e78441d123def3883920090ecc114364d /doc/mtx_distance2.pd
parentffc8098804367d99117fd564bff54c553e2a553a (diff)
added and updated help
svn path=/trunk/externals/iem/iemmatrix/; revision=2723
Diffstat (limited to 'doc/mtx_distance2.pd')
-rw-r--r--doc/mtx_distance2.pd33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/mtx_distance2.pd b/doc/mtx_distance2.pd
new file mode 100644
index 0000000..2391341
--- /dev/null
+++ b/doc/mtx_distance2.pd
@@ -0,0 +1,33 @@
+#N canvas 83 338 696 369 10;
+#X obj 33 242 mtx_distance2;
+#X obj 33 267 mtx_print distances;
+#X obj 119 179 t a a;
+#X obj 149 198 mtx_print B;
+#X obj 33 179 t a a;
+#X obj 63 198 mtx_print A;
+#X obj 33 106 t b b;
+#X msg 33 85 bang;
+#X obj 33 132 mtx_rand 4 3;
+#X obj 119 154 mtx_rand 2 3;
+#X text 44 34 [mtx_distance2];
+#X text 482 28 part of iemmatrix;
+#X text 268 138 inletA: a matrix defining <i> vectors of dimension
+<n>;
+#X text 268 158 inletB: a matrix defining <j> vectors of dimension
+<n>;
+#X text 267 179 outlet: distance matrix (i \, j) \, where each element
+Y(i \, j)=(A(i)-B(i)).(A(i)-B(i))=|A(i)-B(i)|^2;
+#X text 166 69 calculate the (square of the) euclidian distance between
+two sets of vectors.;
+#X text 233 274 note: if you want the real-distance (non-squared) \,
+calculate the square-root with [mtx_.^ 0.5];
+#X connect 0 0 1 0;
+#X connect 2 0 0 1;
+#X connect 2 1 3 0;
+#X connect 4 0 0 0;
+#X connect 4 1 5 0;
+#X connect 6 0 8 0;
+#X connect 6 1 9 0;
+#X connect 7 0 6 0;
+#X connect 8 0 4 0;
+#X connect 9 0 2 0;