-
extStatistics Additional statistics methods for arrays. Part of MathLib MathLib provides additional methods for Collection and SequenceableCollection . // Here's a pseudo-normal distribution which we'lll analyse in the following a = {45.0.s ...
-
... with GameOfLife WFSCollider. If not, see <http://www.gnu.org/licenses/>. */ WFSArrayBase[slot] : RawArray { asXYArray { ^this.collect({ |item| [item.x, item.y] }) } asAZArray { |center = 0| center = center ? this.center; center.asWFSPoint; ...
-
... is a return value! } *new { ^super.new.init } calc {|data, nDims = 2| coords = Array.newClear(nDims)!data.size; // make a harmonic metric into an inharmonic metric inharm = data.collect{|row| row.collect{|elem| if (elem == 0) {0} {elem.rec ...
-
... ld match the number of encoded directions", report ); // dirChannels this.assertArrayFloatEquals( m.dirChannels.flat, // flat: array must be 1D to test directions.flat, "FoaEncoderMatrix:-dirChannels should match encoded directions", floatW ...
-
... arsusServer : SETOServer { var interface; var specs; var head; /** * @arg specs array of specs for each dimension [x, y, z] * */ *new {|netaddr, setoClass, interactionClass, specs, head = 3| ^super.new("_ixyzuvw", setoClass, interactionClas ...
-
... '-' ], inf ), *b); x = a.asStream; x.nextN(20); ) // set theory examples: // an array of sets k = [[0, 3, 4], [0, 5, 7], [1, 3, 4], [-3, 4, 5]].collect( _ .as( Set )); // combine the array with a scrambled version of itself. // set operatio ...
-
... /dead state of cells and the population count. The first argument is the states array, which is an array of arrays, where each array is the states of rows from top to bottom. Run the code below: a = ModernLife .new(8, 80); a.userFunc_({ |st ...
-
... \audio); Instr([\oscillOrc2,\randKlang ],{arg freq=500,qnty=10,amp; Klang.ar(`[ Array.rand(qnty.asInteger, 600.0, 1000.0), nil, nil ], freq/2000,0,qnty.reciprocal * amp) ; },nil,\audio); Instr([\oscillOrc2,\geomKlang],{arg freq=500,freqOffs ...
-
... w { arg freqs, amps, highInterval = 1902; /*@ desc: Create a new curve based on arrays of data. This would mostly be used for additive synthesis. freqs: An array of signficant frequencies of a timbre amps: An array of amplitudes for the giv ...
-
... t; if(centroids.isEmpty, { //only create new centroids after a reset centroids= Array.fill(k, {vectors.choose}); }, { if(k!=centroids.size, { //if k changed then truncate or extend if(k<centroids.size, { centroids= centroids.copyRange(0, k- ...