There are matrix math implementations in the MathLib quark.There are some standard ways to calculate PCA:involving covariance matrix, eigenvalues and what not. I did this once (but not in sc)There is a .cov(ariance) method on Matrix in MathLibIf this makes your head hurt then try porting a full solution from some other language:Hope that helps or gets you started.- felixOn Thu, Dec 21, 2017 at 11:07 PM, <kewping@xxxxxxxxx> wrote:Thank you for your reply.
I have a dataset (training set) of 286 (column) * 56 (row), meaning:
- 56 training example.
- Each training example have 286 data of different number
My code:
a = CSVFileReader.read("C:\\Users\\ID977\\Data_Coffee.csv",skipE mptyLines:
true).postcs;
b = a.collect { |row| row.collect { |s| s.asFloat } };
b.postcs;
(
Pbind(
\instrument, \fmgrain1,
\carrfreq, 10 * Pseq(b).trace / 4,
\modfreq, Pkey(\carrfreq) / 5,
\index, 2.5,
\attack, 0.001, // and fixed values as desired
\decay, 0.2, // for the other parameters
\dur, 0.1
).trace.play
)
--> I need to generate a sequences of sound of 256.
--
Sent from: http://new-supercollider-mailing-lists-forums-use-these. 2681727.n2.nabble.com/SuperCol lider-Users-New-Use-this- f2676391.html
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/ supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/