-
... nt" arg, it's used for recursion.) *classify { |point, treedata, pathInt=1| var node = treedata[pathInt - 1]; // note the minus one, it's because the indexing has to start at 1 not 0 var result = sumF((point - node[..point.size-1]) * node[p ...
-
... a SOM using SOMTrain , and you also want some data to be stored along with each node, generated during the training process, then you can simply use BufWr in combination with SOMRd .coordsToBufIndex . However, this won't let you write the d ...
-
... ; inputs = theInputs; // This unit outputs the co-ordinate of the best-matching node, i.e. its integer index in the grid. // NOT the template vector - you can work that out yrself! ^this.initOutputs(inputs[2], rate); } // SOMRd returns node ...
-
// Compar is a feed-forward resonator network featuring three ComplexRes nodes. // This code example accompanies the paper "Dynamic FM synthesis using a network of complex resonator filters" by Julian Parker and Till Bovermann. // see http: ...
-
... ata = data.clump(2)}) }); // Let's plot it: ( ~winsize = 700; w = Window ( "SOM node locations" , Rect (300, 300, ~winsize, ~winsize)); ~somdata.do{ |datum| SCStaticText (w, Rect (~winsize * 0.5 * (datum[0]+1), ~winsize * 0.5 * (datum[1]+1) ...
-
... initialization cost. The downside of this is that you have to keep track of the nodes, but that's not a big deal. I've been initializing a bunch of instruments at the start, pausing for a freq seconds and then starting to play. Installation ...
-
... e ranges of the input data. You should probably do a similar thing. s.boot; ~numnodes = 20; ~traindur = 100000; ~dataspacelength = 100; ~dataspacechanwidth = 10; // First create the data ~dataspace = Buffer .alloc(s, ~dataspacelength, ~data ...
-
... ck implements an FM feedback matrix based on the ComplexRes UGen. The number of nodes can be set when defining the synthesis engine. ComparFeedback implements a superset of the Compar system (see Compar.scd in this folder). // This code exa ...