aboutsummaryrefslogtreecommitdiff
path: root/abs/mtx_distance.pd
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-07-25 14:37:35 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-07-25 14:37:35 +0000
commit49cc86f6a80ba871d6eeaa9af2c6b541dfb319e5 (patch)
tree2c3d509ee7b06c66815d15d8d1764b1266cedfae /abs/mtx_distance.pd
parent1f4d2bf3627e646512a28737c830420ac46e96f7 (diff)
added an abstraction to get the (real) distance between to sets of vectors (and not the squared one)
svn path=/trunk/externals/iem/iemmatrix/; revision=5410
Diffstat (limited to 'abs/mtx_distance.pd')
-rw-r--r--abs/mtx_distance.pd19
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/mtx_distance.pd b/abs/mtx_distance.pd
new file mode 100644
index 0000000..20f30aa
--- /dev/null
+++ b/abs/mtx_distance.pd
@@ -0,0 +1,19 @@
+#N canvas 323 233 661 451 10;
+#X text 72 316 (c) 2005 by IOhannes m zmoelnig \, IEM KUG \, graz austria
+;
+#X text 72 333 for license-details see LICENSE.txt that must come with
+iemmatrix.;
+#X obj 115 164 mtx_distance2;
+#X obj 115 78 inlet matrix1;
+#X obj 264 78 inlet matrix2;
+#X obj 115 209 mtx_.^ 0.5;
+#X text 73 41 calculate the euclidian distance between to sets of vectors
+;
+#X text 229 162 for performance reasons this does not calculate the
+square-root;
+#X text 229 206 so here we do the square-root;
+#X obj 115 240 outlet distance-matrix;
+#X connect 2 0 5 0;
+#X connect 3 0 2 0;
+#X connect 4 0 2 1;
+#X connect 5 0 9 0;