diff --git a/help/fluid.kmeans~.maxhelp b/help/fluid.kmeans~.maxhelp index 1f2b63c4..a7faaaac 100644 --- a/help/fluid.kmeans~.maxhelp +++ b/help/fluid.kmeans~.maxhelp @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 35.0, 88.0, 987.0, 777.0 ], + "rect" : [ 35.0, 88.0, 967.0, 788.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -41,6 +41,1696 @@ "showontab" : 0, "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 35.0, 114.0, 967.0, 762.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 13.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 2, + "gridsize" : [ 10.0, 10.0 ], + "gridsnaponopen" : 2, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "showontab" : 1, + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-3", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 10.0, 62.0, 412.0, 21.0 ], + "text" : "Calculating distances between points and each learned mean/centroid", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-110", + "linecount" : 10, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 350.0, 480.0, 153.0, 152.0 ], + "text" : "The point size is scaled by the distance that the point has to the cluster it belongs to.\n\nSo, you should see that points further away from the centroid are smaller and ones which are closer are larger.", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-108", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 769.0, 202.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "3", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-107", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 700.0, 250.0, 215.0, 25.0 ], + "text" : "Get the distances to each cluster" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-105", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 917.0, 252.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "4", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-106", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 558.0, 200.0, 209.0, 25.0 ], + "text" : "Get the centroids of the clusters" + } + + } +, { + "box" : { + "id" : "obj-102", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 84.0, 131.0, 667.0, 782.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 58.0, 90.0, 22.0 ], + "text" : "route transform" + } + + } +, { + "box" : { + "id" : "obj-92", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 220.0, 100.0, 198.0, 22.0 ], + "text" : "fluid.dataset~ help.kmeans.5.dist" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 13.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-99", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 377.0, 500.5, 213.0, 22.0 ], + "text" : "vexpr pow(1 - $f1\\, 20) @scalarmode 1" + } + + } +, { + "box" : { + "id" : "obj-97", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 180.0, 93.0, 22.0 ], + "text" : "refer $2, dump" + } + + } +, { + "box" : { + "id" : "obj-95", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 220.5, 86.0, 22.0 ], + "text" : "fluid.dataset~" + } + + } +, { + "box" : { + "id" : "obj-91", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 100.0, 186.0, 22.0 ], + "text" : "fittransform help.kmeans.5.dist" + } + + } +, { + "box" : { + "id" : "obj-89", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 140.0, 100.0, 22.0 ], + "text" : "fluid.normalize~" + } + + } +, { + "box" : { + "id" : "obj-54", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 88.0, 661.5, 58.0, 22.0 ], + "text" : "join" + } + + } +, { + "box" : { + "id" : "obj-53", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 88.0, 698.0, 96.0, 22.0 ], + "text" : "pointsize $1 $2" + } + + } +, { + "box" : { + "id" : "obj-51", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 88.0, 417.5, 58.0, 22.0 ], + "text" : "t s s" + } + + } +, { + "box" : { + "id" : "obj-47", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 127.0, 580.5, 76.0, 22.0 ], + "text" : "fromsymbol" + } + + } +, { + "box" : { + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 127.0, 540.5, 87.0, 22.0 ], + "text" : "route getlabel" + } + + } +, { + "box" : { + "id" : "obj-42", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 127.0, 620.5, 269.0, 22.0 ], + "text" : "zl.lookup" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 88.0, 377.5, 308.0, 22.0 ], + "text" : "zl.slice 1" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 127.0, 460.5, 72.0, 22.0 ], + "text" : "getlabel $1" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 88.0, 337.5, 50.0, 22.0 ], + "text" : "dict.iter" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 88.0, 297.5, 107.0, 22.0 ], + "text" : "dict.unpack data:" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 88.0, 257.5, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 127.0, 500.5, 214.0, 22.0 ], + "text" : "fluid.labelset~ help.kmeans.5.labels" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-101", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 88.0, 735.213379000000032, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-91", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-41", 0 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-51", 0 ], + "source" : [ "obj-41", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "source" : [ "obj-41", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 1 ], + "source" : [ "obj-42", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-43", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-42", 0 ], + "source" : [ "obj-47", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "source" : [ "obj-51", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-51", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-101", 0 ], + "source" : [ "obj-53", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-53", 0 ], + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-97", 0 ], + "source" : [ "obj-89", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-89", 0 ], + "source" : [ "obj-91", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "source" : [ "obj-95", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-95", 0 ], + "source" : [ "obj-97", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-42", 1 ], + "source" : [ "obj-99", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 430.0, 350.0, 117.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"scale point size\"" + } + + } +, { + "box" : { + "id" : "obj-83", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 360.0, 200.0, 196.0, 23.0 ], + "text" : "getmeans help.kmeans.5.means" + } + + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 696.0, 596.0, 742.0, 517.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 15.0, 59.0, 92.0, 22.0 ], + "text" : "route getmeans" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 197.0, 249.0, 47.0, 22.0 ], + "text" : "dict.iter" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 197.0, 213.0, 99.0, 22.0 ], + "text" : "dict.unpack data:" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 197.0, 171.0, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 15.0, 98.0, 41.0, 22.0 ], + "text" : "dump" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 15.0, 138.0, 201.0, 22.0 ], + "text" : "fluid.dataset~ help.kmeans.5.means" + } + + } +, { + "box" : { + "id" : "obj-13", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 554.0, 419.954543999999942, 150.0, 33.0 ], + "text" : "This plots the position of our means as seeds", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 197.0, 370.0, 29.5, 22.0 ], + "text" : "join" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 197.0, 325.0, 93.0, 22.0 ], + "text" : "combine i mean" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 197.0, 287.0, 55.0, 22.0 ], + "text" : "zl.slice 1" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 414.0, 425.454543999999942, 121.0, 22.0 ], + "text" : "pointcolor $1 0 0 0 1." + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 315.0, 425.454543999999942, 86.0, 22.0 ], + "text" : "pointsize $1 2." + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 197.0, 425.454543999999942, 108.0, 22.0 ], + "text" : "setpoint $1 $2 $3" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 15.0, 15.000014999999962, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 197.0, 474.454543999999942, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "midpoints" : [ 242.5, 320.0, 184.0, 320.0, 184.0, 357.0, 217.0, 357.0 ], + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 206.5, 449.0, 206.5, 449.0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 324.5, 461.0, 206.5, 461.0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 423.5, 461.0, 206.5, 461.0 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "midpoints" : [ 206.5, 415.227271999999971, 206.5, 415.227271999999971 ], + "order" : 2, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "midpoints" : [ 206.5, 415.227271999999971, 324.5, 415.227271999999971 ], + "order" : 1, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "midpoints" : [ 206.5, 415.227271999999971, 423.5, 415.227271999999971 ], + "order" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-7", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-8", 0 ] + } + + } + ], + "styles" : [ { + "name" : "max6box", + "default" : { + "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6inlet", + "default" : { + "color" : [ 0.423529, 0.372549, 0.27451, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6message", + "default" : { + "bgfillcolor" : { + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], + "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], + "proportion" : 0.39, + "type" : "gradient" + } +, + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "max6box", + "multi" : 0 + } +, { + "name" : "max6outlet", + "default" : { + "color" : [ 0.0, 0.454902, 0.498039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 549.0, 350.0, 92.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"plot means\"" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 400.0, 250.0, 292.0, 23.0 ], + "text" : "transform help.kmeans.5.data help.kmeans.5.dist" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 309.0, 264.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-18", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 14.0, 97.0, 41.0, 22.0 ], + "text" : "dump" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 14.0, 62.0, 91.0, 22.0 ], + "text" : "route fitpredict" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 193.0, 169.5, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 14.0, 134.0, 198.0, 22.0 ], + "text" : "fluid.labelset~ help.kmeans.5.labels" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 14.0, 14.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-4", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 193.0, 207.5, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 0 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-16", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "source" : [ "obj-55", 1 ] + } + + } + ] + } +, + "patching_rect" : [ 317.0, 350.0, 110.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"dump labelset\"" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-17", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 920.0, 152.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-19", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 654.0, 150.0, 264.0, 25.0 ], + "text" : "Predict clusters from the selected dataset" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-25", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 316.0, 112.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-11", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 187.0, 110.0, 127.0, 25.0 ], + "text" : "Choose a dataset" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "clear" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 265.0, 366.0, 305.0, 274.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 81.5, 91.0, 86.0, 22.0 ], + "text" : "prepend read" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "dump", "", "clear" ], + "patching_rect" : [ 11.0, 51.0, 160.0, 22.0 ], + "text" : "t dump l clear" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 180.0, 164.0, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 11.0, 132.0, 188.0, 22.0 ], + "text" : "fluid.dataset~ help.kmeans.5.data" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 11.0, 8.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-4", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 180.0, 219.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "midpoints" : [ 189.5, 206.0, 189.5, 206.0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "midpoints" : [ 161.5, 75.0, 264.0, 75.0, 264.0, 204.0, 189.5, 204.0 ], + "source" : [ "obj-11", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-11", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-7", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "midpoints" : [ 91.0, 123.0, 20.5, 123.0 ], + "source" : [ "obj-8", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 10.0, 185.0, 78.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"plot data\"" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 317.0, 150.0, 335.0, 23.0 ], + "text" : "clear, fitpredict help.kmeans.5.data help.kmeans.5.labels" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 317.0, 300.0, 187.0, 23.0 ], + "text" : "fluid.kmeans~ @numclusters 4" + } + + } +, { + "box" : { + "border" : 0, + "filename" : "fluid.plotter.js", + "id" : "obj-9", + "maxclass" : "jsui", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 10.0, 400.0, 326.0, 326.0 ] + } + + } +, { + "box" : { + "args" : [ 4 ], + "bgmode" : 0, + "border" : 0, + "clickthrough" : 0, + "enablehscroll" : 0, + "enablevscroll" : 0, + "id" : "obj-1", + "lockeddragscroll" : 0, + "lockedsize" : 0, + "maxclass" : "bpatcher", + "name" : "fluid.dataloader.maxpat", + "numinlets" : 0, + "numoutlets" : 1, + "offset" : [ 0.0, 0.0 ], + "outlettype" : [ "" ], + "patching_rect" : [ 10.0, 100.0, 175.0, 63.363631999999996 ], + "viewvisibility" : 1 + } + + } +, { + "box" : { + "border" : 0, + "filename" : "helpdetails.js", + "id" : "obj-2", + "ignoreclick" : 1, + "jsarguments" : [ "fluid.kmeans~" ], + "maxclass" : "jsui", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "parameter_enable" : 0, + "patching_rect" : [ 10.0, 10.0, 300.0, 50.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 439.5, 385.0, 326.5, 385.0 ], + "source" : [ "obj-102", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-102", 0 ], + "midpoints" : [ 326.5, 337.0, 439.5, 337.0 ], + "order" : 1, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "midpoints" : [ 326.5, 325.0, 326.5, 325.0 ], + "order" : 2, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 0 ], + "midpoints" : [ 326.5, 337.0, 558.5, 337.0 ], + "order" : 0, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 326.5, 175.0, 326.5, 175.0 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "midpoints" : [ 19.5, 210.0, 19.5, 210.0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 326.5, 376.0, 326.5, 376.0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 409.5, 286.0, 326.5, 286.0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 558.5, 385.0, 326.5, 385.0 ], + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 369.5, 286.0, 326.5, 286.0 ], + "source" : [ "obj-83", 0 ] + } + + } + ], + "styles" : [ { + "name" : "max6box", + "default" : { + "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6inlet", + "default" : { + "color" : [ 0.423529, 0.372549, 0.27451, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6message", + "default" : { + "bgfillcolor" : { + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], + "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], + "proportion" : 0.39, + "type" : "gradient" + } +, + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "max6box", + "multi" : 0 + } +, { + "name" : "max6outlet", + "default" : { + "color" : [ 0.0, 0.454902, 0.498039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 550.0, 10.0, 69.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "fontsize" : 13.0, + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p distances", + "varname" : "basic_tab[4]" + } + + } +, { "box" : { "id" : "obj-1", "maxclass" : "newobj", @@ -57,7 +1747,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 967.0, 762.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 13.0, @@ -92,7 +1782,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 10.0, 70.0, 670.0, 21.0 ], + "patching_rect" : [ 10.0, 62.0, 670.0, 21.0 ], "text" : "You can also retrieve the \"means\" i.e the centres of each cluster either for visualisation or perhaps further analysis.", "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] } @@ -1101,6 +2791,7 @@ } , { "box" : { + "border" : 0, "filename" : "fluid.plotter.js", "id" : "obj-9", "maxclass" : "jsui", @@ -1291,7 +2982,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 967.0, 762.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 13.0, @@ -1329,7 +3020,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 10.0, 60.0, 385.0, 36.0 ], + "patching_rect" : [ 10.0, 60.0, 460.0, 36.0 ], "text" : "You can incrementally \"fit\" a dataset, allowing you to iterate slowly through the learning process of the kmeans algorithm", "textcolor" : [ 0.50196099281311, 0.50196099281311, 0.50196099281311, 1.0 ] } @@ -1562,7 +3253,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 10.0, 10.0, 400.0, 60.0 ] + "patching_rect" : [ 10.0, 10.0, 300.0, 50.0 ] } } @@ -1858,6 +3549,7 @@ } , { "box" : { + "border" : 0, "filename" : "fluid.plotter.js", "id" : "obj-9", "maxclass" : "jsui", @@ -2018,7 +3710,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 967.0, 762.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 13.0, @@ -3127,6 +4819,7 @@ } , { "box" : { + "border" : 0, "filename" : "fluid.plotter.js", "id" : "obj-9", "jsarguments" : [ 0.3 ], @@ -3357,7 +5050,7 @@ } , "classnamespace" : "box", - "rect" : [ 35.0, 114.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 967.0, 762.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 13.0, @@ -3893,6 +5586,7 @@ } , { "box" : { + "border" : 0, "filename" : "fluid.plotter.js", "id" : "obj-9", "maxclass" : "jsui", @@ -4070,7 +5764,7 @@ } , "classnamespace" : "box", - "rect" : [ 0.0, 26.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 967.0, 762.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -4103,7 +5797,7 @@ "lines" : [ ] } , - "patching_rect" : [ 550.0, 10.0, 25.0, 22.0 ], + "patching_rect" : [ 750.0, 320.0, 25.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", diff --git a/help/fluid.skmeans~.maxhelp b/help/fluid.skmeans~.maxhelp index 9584e8bb..980c2a14 100644 --- a/help/fluid.skmeans~.maxhelp +++ b/help/fluid.skmeans~.maxhelp @@ -3,8 +3,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -41,6 +41,1696 @@ "showontab" : 0, "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 35.0, 114.0, 987.0, 751.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 13.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 2, + "gridsize" : [ 10.0, 10.0 ], + "gridsnaponopen" : 2, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "showontab" : 1, + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-3", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 10.0, 62.0, 412.0, 21.0 ], + "text" : "Calculating distances between points and each learned mean/centroid", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-110", + "linecount" : 10, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 350.0, 480.0, 153.0, 152.0 ], + "text" : "The point size is scaled by the distance that the point has to the cluster it belongs to.\n\nSo, you should see that points further away from the centroid are smaller and ones which are closer are larger.", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-108", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 769.0, 202.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "3", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-107", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 707.0, 250.0, 215.0, 25.0 ], + "text" : "Get the distances to each cluster" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-105", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 924.0, 252.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "4", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-106", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 558.0, 200.0, 209.0, 25.0 ], + "text" : "Get the centroids of the clusters" + } + + } +, { + "box" : { + "id" : "obj-102", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 84.0, 131.0, 667.0, 782.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 58.0, 90.0, 22.0 ], + "text" : "route transform" + } + + } +, { + "box" : { + "id" : "obj-92", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 220.0, 100.0, 190.0, 22.0 ], + "text" : "fluid.dataset~ help.skmeans.5.dist" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 13.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "id" : "obj-99", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 371.0, 497.5, 213.0, 22.0 ], + "text" : "vexpr pow(1 - $f1\\, 20) @scalarmode 1" + } + + } +, { + "box" : { + "id" : "obj-97", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 180.0, 87.0, 22.0 ], + "text" : "refer $2, dump" + } + + } +, { + "box" : { + "id" : "obj-95", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 220.5, 80.0, 22.0 ], + "text" : "fluid.dataset~" + } + + } +, { + "box" : { + "id" : "obj-91", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 21.0, 100.0, 178.0, 22.0 ], + "text" : "fittransform help.skmeans.5.dist" + } + + } +, { + "box" : { + "id" : "obj-89", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 21.0, 140.0, 93.0, 22.0 ], + "text" : "fluid.normalize~" + } + + } +, { + "box" : { + "id" : "obj-54", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 82.0, 658.5, 29.5, 22.0 ], + "text" : "join" + } + + } +, { + "box" : { + "id" : "obj-53", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 82.0, 695.0, 89.0, 22.0 ], + "text" : "pointsize $1 $2" + } + + } +, { + "box" : { + "id" : "obj-51", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 82.0, 414.5, 31.0, 22.0 ], + "text" : "t s s" + } + + } +, { + "box" : { + "id" : "obj-47", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 121.0, 577.5, 71.0, 22.0 ], + "text" : "fromsymbol" + } + + } +, { + "box" : { + "id" : "obj-43", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 121.0, 537.5, 81.0, 22.0 ], + "text" : "route getlabel" + } + + } +, { + "box" : { + "id" : "obj-42", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 121.0, 617.5, 56.0, 22.0 ], + "text" : "zl.lookup" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 82.0, 374.5, 55.0, 22.0 ], + "text" : "zl.slice 1" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 121.0, 457.5, 67.0, 22.0 ], + "text" : "getlabel $1" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 82.0, 334.5, 47.0, 22.0 ], + "text" : "dict.iter" + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 82.0, 294.5, 99.0, 22.0 ], + "text" : "dict.unpack data:" + } + + } +, { + "box" : { + "id" : "obj-27", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 82.0, 254.5, 69.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 121.0, 497.5, 204.0, 22.0 ], + "text" : "fluid.labelset~ help.skmeans.5.labels" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-101", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 82.0, 732.213379000000032, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-91", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-43", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "source" : [ "obj-27", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-41", 0 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-51", 0 ], + "source" : [ "obj-41", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-99", 0 ], + "source" : [ "obj-41", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 1 ], + "source" : [ "obj-42", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-47", 0 ], + "source" : [ "obj-43", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-42", 0 ], + "source" : [ "obj-47", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "source" : [ "obj-51", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-54", 0 ], + "source" : [ "obj-51", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-101", 0 ], + "source" : [ "obj-53", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-53", 0 ], + "source" : [ "obj-54", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-97", 0 ], + "source" : [ "obj-89", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-89", 0 ], + "source" : [ "obj-91", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-27", 0 ], + "source" : [ "obj-95", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-95", 0 ], + "source" : [ "obj-97", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-42", 1 ], + "source" : [ "obj-99", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 430.0, 350.0, 117.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"scale point size\"" + } + + } +, { + "box" : { + "id" : "obj-83", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 360.0, 200.0, 203.0, 23.0 ], + "text" : "getmeans help.skmeans.5.means" + } + + } +, { + "box" : { + "id" : "obj-81", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 696.0, 596.0, 742.0, 517.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 15.0, 59.0, 92.0, 22.0 ], + "text" : "route getmeans" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 248.0, 47.0, 22.0 ], + "text" : "dict.iter" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 212.0, 99.0, 22.0 ], + "text" : "dict.unpack data:" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 203.0, 170.0, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 15.0, 98.0, 41.0, 22.0 ], + "text" : "dump" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 15.0, 138.0, 207.0, 22.0 ], + "text" : "fluid.dataset~ help.skmeans.5.means" + } + + } +, { + "box" : { + "id" : "obj-13", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 560.0, 418.954543999999942, 150.0, 33.0 ], + "text" : "This plots the position of our means as seeds", + "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 369.0, 29.5, 22.0 ], + "text" : "join" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 203.0, 324.0, 93.0, 22.0 ], + "text" : "combine i mean" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 203.0, 286.0, 55.0, 22.0 ], + "text" : "zl.slice 1" + } + + } +, { + "box" : { + "id" : "obj-32", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 420.0, 424.454543999999942, 121.0, 22.0 ], + "text" : "pointcolor $1 0 0 0 1." + } + + } +, { + "box" : { + "id" : "obj-31", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 321.0, 424.454543999999942, 86.0, 22.0 ], + "text" : "pointsize $1 2." + } + + } +, { + "box" : { + "id" : "obj-29", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 203.0, 424.454543999999942, 108.0, 22.0 ], + "text" : "setpoint $1 $2 $3" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-1", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 15.0, 15.000014999999962, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 203.0, 473.454543999999942, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 1 ], + "midpoints" : [ 248.5, 319.0, 190.0, 319.0, 190.0, 356.0, 223.0, 356.0 ], + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 212.5, 448.0, 212.5, 448.0 ], + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 330.5, 460.0, 212.5, 460.0 ], + "source" : [ "obj-31", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "midpoints" : [ 429.5, 460.0, 212.5, 460.0 ], + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "midpoints" : [ 212.5, 414.227271999999971, 212.5, 414.227271999999971 ], + "order" : 2, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-31", 0 ], + "midpoints" : [ 212.5, 414.227271999999971, 330.5, 414.227271999999971 ], + "order" : 1, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "midpoints" : [ 212.5, 414.227271999999971, 429.5, 414.227271999999971 ], + "order" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-7", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-8", 0 ] + } + + } + ], + "styles" : [ { + "name" : "max6box", + "default" : { + "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6inlet", + "default" : { + "color" : [ 0.423529, 0.372549, 0.27451, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6message", + "default" : { + "bgfillcolor" : { + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], + "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], + "proportion" : 0.39, + "type" : "gradient" + } +, + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "max6box", + "multi" : 0 + } +, { + "name" : "max6outlet", + "default" : { + "color" : [ 0.0, 0.454902, 0.498039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 549.0, 350.0, 92.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"plot means\"" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 400.0, 250.0, 305.0, 23.0 ], + "text" : "transform help.skmeans.5.data help.skmeans.5.dist" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 309.0, 264.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-18", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 14.0, 97.0, 41.0, 22.0 ], + "text" : "dump" + } + + } +, { + "box" : { + "id" : "obj-16", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 14.0, 62.0, 91.0, 22.0 ], + "text" : "route fitpredict" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 199.0, 165.5, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-55", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 14.0, 134.0, 204.0, 22.0 ], + "text" : "fluid.labelset~ help.skmeans.5.labels" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 14.0, 14.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-4", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 199.0, 203.5, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "source" : [ "obj-15", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-55", 0 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-16", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "source" : [ "obj-55", 1 ] + } + + } + ] + } +, + "patching_rect" : [ 317.0, 350.0, 110.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"dump labelset\"" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-17", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 933.0, 152.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-19", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 667.0, 150.0, 264.0, 25.0 ], + "text" : "Predict clusters from the selected dataset" + } + + } +, { + "box" : { + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontname" : "Arial Bold", + "hint" : "", + "id" : "obj-25", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 316.0, 112.5, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "bubble" : 1, + "id" : "obj-11", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 187.0, 110.0, 127.0, 25.0 ], + "text" : "Choose a dataset" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "clear" ], + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 0, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 265.0, 366.0, 305.0, 274.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 81.5, 91.0, 86.0, 22.0 ], + "text" : "prepend read" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "dump", "", "clear" ], + "patching_rect" : [ 11.0, 51.0, 160.0, 22.0 ], + "text" : "t dump l clear" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 186.0, 164.0, 74.0, 22.0 ], + "text" : "route dump" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 11.0, 132.0, 194.0, 22.0 ], + "text" : "fluid.dataset~ help.skmeans.5.data" + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-3", + "index" : 1, + "maxclass" : "inlet", + "numinlets" : 0, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 11.0, 8.0, 30.0, 30.0 ] + } + + } +, { + "box" : { + "comment" : "", + "id" : "obj-4", + "index" : 1, + "maxclass" : "outlet", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 186.0, 219.0, 30.0, 30.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "midpoints" : [ 195.5, 206.0, 195.5, 206.0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "midpoints" : [ 161.5, 75.0, 264.0, 75.0, 264.0, 204.0, 195.5, 204.0 ], + "source" : [ "obj-11", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "source" : [ "obj-11", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-8", 0 ], + "source" : [ "obj-11", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-11", 0 ], + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-10", 0 ], + "source" : [ "obj-7", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "midpoints" : [ 91.0, 123.0, 20.5, 123.0 ], + "source" : [ "obj-8", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 10.0, 185.0, 78.0, 23.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p \"plot data\"" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 317.0, 150.0, 348.0, 23.0 ], + "text" : "clear, fitpredict help.skmeans.5.data help.skmeans.5.labels" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 317.0, 300.0, 187.0, 23.0 ], + "text" : "fluid.kmeans~ @numclusters 4" + } + + } +, { + "box" : { + "border" : 0, + "filename" : "fluid.plotter.js", + "id" : "obj-9", + "maxclass" : "jsui", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 10.0, 400.0, 326.0, 326.0 ] + } + + } +, { + "box" : { + "args" : [ 4 ], + "bgmode" : 0, + "border" : 0, + "clickthrough" : 0, + "enablehscroll" : 0, + "enablevscroll" : 0, + "id" : "obj-1", + "lockeddragscroll" : 0, + "lockedsize" : 0, + "maxclass" : "bpatcher", + "name" : "fluid.dataloader.maxpat", + "numinlets" : 0, + "numoutlets" : 1, + "offset" : [ 0.0, 0.0 ], + "outlettype" : [ "" ], + "patching_rect" : [ 10.0, 100.0, 175.0, 63.363631999999996 ], + "viewvisibility" : 1 + } + + } +, { + "box" : { + "border" : 0, + "filename" : "helpdetails.js", + "id" : "obj-2", + "ignoreclick" : 1, + "jsarguments" : [ "fluid.skmeans~" ], + "maxclass" : "jsui", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "parameter_enable" : 0, + "patching_rect" : [ 10.0, 10.0, 326.0, 50.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 439.5, 385.0, 326.5, 385.0 ], + "source" : [ "obj-102", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-102", 0 ], + "midpoints" : [ 326.5, 337.0, 439.5, 337.0 ], + "order" : 1, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "midpoints" : [ 326.5, 325.0, 326.5, 325.0 ], + "order" : 2, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-81", 0 ], + "midpoints" : [ 326.5, 337.0, 558.5, 337.0 ], + "order" : 0, + "source" : [ "obj-12", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 326.5, 175.0, 326.5, 175.0 ], + "source" : [ "obj-14", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 0 ], + "midpoints" : [ 19.5, 210.0, 19.5, 210.0 ], + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 326.5, 376.0, 326.5, 376.0 ], + "source" : [ "obj-6", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 409.5, 286.0, 326.5, 286.0 ], + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "midpoints" : [ 558.5, 385.0, 326.5, 385.0 ], + "source" : [ "obj-81", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-12", 0 ], + "midpoints" : [ 369.5, 286.0, 326.5, 286.0 ], + "source" : [ "obj-83", 0 ] + } + + } + ], + "styles" : [ { + "name" : "max6box", + "default" : { + "accentcolor" : [ 0.8, 0.839216, 0.709804, 1.0 ], + "bgcolor" : [ 1.0, 1.0, 1.0, 0.5 ], + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6inlet", + "default" : { + "color" : [ 0.423529, 0.372549, 0.27451, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } +, { + "name" : "max6message", + "default" : { + "bgfillcolor" : { + "angle" : 270.0, + "autogradient" : 0, + "color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], + "color1" : [ 0.866667, 0.866667, 0.866667, 1.0 ], + "color2" : [ 0.788235, 0.788235, 0.788235, 1.0 ], + "proportion" : 0.39, + "type" : "gradient" + } +, + "textcolor_inverse" : [ 0.0, 0.0, 0.0, 1.0 ] + } +, + "parentstyle" : "max6box", + "multi" : 0 + } +, { + "name" : "max6outlet", + "default" : { + "color" : [ 0.0, 0.454902, 0.498039, 1.0 ] + } +, + "parentstyle" : "", + "multi" : 0 + } + ] + } +, + "patching_rect" : [ 550.0, 10.0, 69.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "fontsize" : 13.0, + "globalpatchername" : "", + "tags" : "" + } +, + "text" : "p distances", + "varname" : "basic_tab[4]" + } + + } +, { "box" : { "id" : "obj-1", "maxclass" : "newobj", @@ -50,8 +1740,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -92,7 +1782,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 10.0, 70.0, 670.0, 21.0 ], + "patching_rect" : [ 10.0, 62.0, 670.0, 21.0 ], "text" : "You can also retrieve the \"means\" i.e the centres of each cluster either for visualisation or perhaps further analysis.", "textcolor" : [ 0.501960784313725, 0.501960784313725, 0.501960784313725, 1.0 ] } @@ -202,8 +1892,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -664,8 +2354,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -851,8 +2541,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -1286,8 +2976,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -1331,7 +3021,7 @@ "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 10.0, 60.0, 385.0, 36.0 ], + "patching_rect" : [ 10.0, 62.0, 385.0, 36.0 ], "text" : "You can incrementally \"fit\" a dataset, allowing you to iterate slowly through the learning process of the skmeans algorithm", "textcolor" : [ 0.50196099281311, 0.50196099281311, 0.50196099281311, 1.0 ] } @@ -1393,8 +3083,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -1564,7 +3254,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, - "patching_rect" : [ 10.0, 10.0, 400.0, 60.0 ] + "patching_rect" : [ 10.0, 10.0, 320.0, 50.0 ] } } @@ -1657,8 +3347,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -2013,14 +3703,14 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 35.0, 114.0, 987.0, 751.0 ], + "rect" : [ 0.0, 26.0, 987.0, 751.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 13.0, @@ -2134,8 +3824,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -2364,8 +4054,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -2692,8 +4382,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -2879,8 +4569,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -3354,8 +5044,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -3401,8 +5091,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -3679,6 +5369,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], + "parameter_enable" : 0, "patching_rect" : [ 357.5, 217.5, 150.0, 23.0 ] } @@ -3694,8 +5385,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -4066,8 +5757,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -4106,7 +5797,7 @@ "lines" : [ ] } , - "patching_rect" : [ 550.0, 10.0, 25.0, 22.0 ], + "patching_rect" : [ 633.0, 11.0, 25.0, 22.0 ], "saved_object_attributes" : { "description" : "", "digest" : "", @@ -4121,45 +5812,6 @@ } ], "lines" : [ ], - "dependency_cache" : [ { - "name" : "fluid.dataloader.maxpat", - "bootpath" : "~/Documents/documents@hudd/research/projects/fluid corpus navigation/research/nightly_builds/Max/FluidCorpusManipulation/patchers", - "patcherrelativepath" : "../../nightly_builds/Max/FluidCorpusManipulation/patchers", - "type" : "JSON", - "implicit" : 1 - } -, { - "name" : "fluid.flucomaorg.maxpat", - "bootpath" : "~/Documents/documents@hudd/research/projects/fluid corpus navigation/research/flucoma-max/help", - "patcherrelativepath" : ".", - "type" : "JSON", - "implicit" : 1 - } -, { - "name" : "fluid.learn.maxpat", - "bootpath" : "~/Documents/documents@hudd/research/projects/fluid corpus navigation/research/flucoma-max/help", - "patcherrelativepath" : ".", - "type" : "JSON", - "implicit" : 1 - } -, { - "name" : "fluid.libmanipulation.mxo", - "type" : "iLaX" - } -, { - "name" : "fluid.plotter.js", - "bootpath" : "~/Documents/documents@hudd/research/projects/fluid corpus navigation/research/nightly_builds/Max/FluidCorpusManipulation/jsui", - "patcherrelativepath" : "../../nightly_builds/Max/FluidCorpusManipulation/jsui", - "type" : "TEXT", - "implicit" : 1 - } -, { - "name" : "helpdetails.js", - "bootpath" : "C74:/help/resources", - "type" : "TEXT", - "implicit" : 1 - } - ], "autosave" : 0 } diff --git a/patchers/fluid.dataloader.maxpat b/patchers/fluid.dataloader.maxpat index 8a0e681e..8a0e2ab2 100644 --- a/patchers/fluid.dataloader.maxpat +++ b/patchers/fluid.dataloader.maxpat @@ -3,8 +3,8 @@ "fileversion" : 1, "appversion" : { "major" : 8, - "minor" : 2, - "revision" : 2, + "minor" : 3, + "revision" : 0, "architecture" : "x64", "modernui" : 1 } @@ -57,8 +57,8 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 12.0, 9.0, 70.0, 22.0 ], - "text" : "loadmess 0" + "patching_rect" : [ 12.0, 9.0, 77.0, 22.0 ], + "text" : "loadmess #1" } }