-
+ Array {// gauss-jordan matrix elimination, by Kathi Vogt eliminateMatrix { var array = this.deepCopy; var lastRow = this.size - 1, lastCol = this[0].size - 1; var n = min(lastRow, lastCol); var z, diag, fk, ee; (0 .. n - 1).do {|i| diag = ...
-
# Array Flatten [![NPM version][npm-image]][npm-url] [![NPM downloads][downloads-image]][downloads-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] > Flatten an array of nested arrays into ...
-
... "file exists:"+anafilename+"no need to analyze again.").postln }; } prFillPeriodArray{arg parent; var ana=File.new(anafilename, "rb"); parent.array=Array.fill(ana.length/48,{|i| Period.newUsing(this,parent,i,*({ana.getDoubleLE}!6))}); } // ...
-
... y clear *new { |pairs| ^this.fromPairs(pairs); } // very efficient *newUsing { |array, names| ^super.newUsing(array ?? {[]}).init(names); } // conversions *fromPairs { |pairs| var names, values; pairs = pairs ?? {[]}; #values, names = pairs ...
-
... y clear *new { |pairs| ^this.fromPairs(pairs); } // very efficient *newUsing { |array, names| ^super.newUsing(array ?? {[]}).init(names); } // conversions *fromPairs { |pairs| var names, values; pairs = pairs ?? {[]}; #values, names = pairs ...
-
// wslib 2007 // plot multiple arrays on top of eachother // example: /* MultiPlot( [ (-10,-9..10), (-20,-18..20).fold(-10,10), { 3.0.rand2 } ! 20 ] ) */ MultiPlot { *new { |arrays, width = 600, height = 400, colors, background, hLinesAt, v ...
-
... w.gnu.org/licenses/>. */ // class to apply methods to all elements of the items array // all items should be of type oclass //To Do merge Cluster and ClusterBasic into just one, and subclass as appropriate. Cluster{ var <items, <oclass; prC ...
-
... n);"" a = meshgrid([1,2,3], [6,7,8], [10,12]).do(_.postln);"" */ meshgrid { |...arrays| ^this.class.meshgrid([this] ++ arrays) } /* a = Array.meshgrid([[1,2,3,4], [6,7,8,9,10]]).do(_.postln);"" a = Array.meshgrid([[1,2,3], [6,7,8], [10,12]] ...
-
... result = this.species.new(this.size); this.do({ arg item; (item.isNil || item.asArray.isEmpty).not.if({ result.add(item) }); }); ^result } // output a new collection with counts of occurrences within a range of deviation //the .inRange meth ...
-
Event patterns and array args setting and passing arrays and envelopes via patterns Part of: miSCellaneous This tutorial covers some use cases of array args, especially passing arrays to synths with patterns. Examples 1.) Alternative writin ...