[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Similarity Clumping



i was hoping maybe the basic algorithm would work along these lines... but it seems that "max" isn't setting properly - and i'm not sure quite how to break up subarrays within a function..
v.collect({|i|
var max = v[0];
var thresh = 0.01;
if ((i-max)>thresh,
{max = i; "exceeded".postln;},
{i.postln;}
)});

On Sun, Dec 1, 2019 at 2:59 AM Jables Deutsch <jables.deutsch@xxxxxxxxx> wrote:
Thanks for updating KMeans - it seems like an extremely useful Quark - but I'm thinking the example you cautioned against is actually better for my purposes, since it doesn't alter the array values. 

On Sun, Dec 1, 2019 at 2:48 AM <jamshark70@xxxxxxxxx> wrote:
On Sun, Dec 1, 2019 at 3:11 PM <jables.deutsch@xxxxxxxxx> wrote:
> Well, my thinking is that once the threshold is exceeded, a new "first" value would need to be established for the next clump. Also, the array would need to be sorted first. Maybe I'm still missing a scenario.

Say you have 1.0, 1.1, 1.2, 1.3, 2.0, 2.1, 2.2 and your threshold is
0.25. You will get clumps:

1.0, 1.1, 1.2
1.3
2.0, 2.1, 2.2

But, intuitively, 1.3 belongs in the first clump: it's not really "by itself."

> Also, wondering if you've had any issues with KMeans quark.. I got the following:
> UnitTesting reports an incompatibility with this SuperCollider version or with other already installed quarks.

Oh dear... managing Quark dependencies is one of the weaker parts of
the platform.

Unit testing used to be a quark. Because KMeans supplies unit tests,
it specifies the unit testing quark as a dependency.

Unit testing is now part of the main distribution and the old testing
quark is deprecated. So "KMeans depends on UnitTesting" is no longer
valid.

It turns out that a developer, some months ago, created a pull request
to remove the dependency, but nobody acted on it.

So I just merged it. Try installing again. If it fails again, try
deleting the KMeans folder before installing.

hjh

_______________________________________________
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/