-
... collect { |each| each.deepCollectAssoc(func) } } { this.copy } } findMaximalDropSize { var size = 0; this.deepDoAssoc { |assoc| size = max(size, assoc.keyDropSize) }; ^size } findMaximalKeySize { var size = 0; this.deepDoAssoc { |assoc| siz ...
-
... coProb; //feats var <>randomChromosomeFunc, <>fitnessFunc, <>mutationFunc, <poolSize, chromosomeSize; //internal state var <>genePool, <fitnessScores; //pluggable crossover function var <>userCrossover, <>externalCrossover; *new {|argPoolSi ...
-
... s.top; this.prSelect(xIndex, (y-offset/hgt).asInteger.clip(0, lst[xIndex].items.size-1)); }); }) .mouseUpAction_({|v, x, y| this.prEnd(xIndexLast, x, y); }) .keyDownAction_({|v, c, m, u, k, key| if(c==Char.space, { this.prBegin(0, 0); }); } ...
-
GCube render a GLCube in SCGraph Part of SCGraph GCube.gr(size) A Cube is always located at [0, 0, 0]. size - extent of the cube. // simple example, just renders a (plain white) Cube at the origin of the coordinate system. g = GServer .defa ...
-
... WFSMultiPath { var <>paths; var <>fillTime = 0.1; prPathIndex { |index = 0| var sizes, pathIndex; sizes = paths.collect({ |item| item.positions.size }).integrate; pathIndex = sizes.detectIndex( index < _ ); ^[ pathIndex, index - (sizes[ pat ...
-
... 11 // history aware random // chooses item from a list without repeating // histSize sets the number of items to be remembered for repetition // setting histSize to the size of the list - 1 results in a repetitive pattern /* x = Phrand( (.. ...
-
... ^this //}{ ^Cluster(return) //} } //expand a set of arguments into an array of size items.size prExpand{ |args| ("prExpand: "++args); ^Cluster.expandArray(args,this); } prExpandCollect{ |selector,args| if(args.isNil){ "args nil"; ^this.prC ...
-
... OEYJOEYNJOEYNJOEYJOEYNJOEYNJOEYJOEYNJOEYNJOEY".ascii; b= RedLZ78.compress(a); b.size/a.size; //compressed to 75% c= RedLZ78.decompress(b); a==c a= "Man is distinguished, not only by his reason, but by this singular passion from other animal ...
-
... xed values for everything *ar { |ins, specs, vol=1| vol = vol.lag(0.2); if (ins.size != specs.size) { "SpeakerAdjust: number of ins: % and specs: % dont match." .format(ins.size, specs.size).warn; ^nil }; ^specs.collect { |spec, i| var out, ...
-
... { // return the last index of minimum value when there are more then one ^this.size - 1 - this.reverse.minIndex; } lastMaxIndex { // return the last index of minimum value when there are more then one ^this.size - 1 - this.reverse.maxIndex ...