most recurring memebrs of a list

May 28, 2008 at 11:54am

most recurring memebrs of a list

brain freeze, whats the way to find 3 most recurring memebrs of a stream o
numbers.

#38112
May 28, 2008 at 12:13pm

anyone got better

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 177 176 21 9109513 iter;
#B color 5;
#P message 93 129 109 9109513 1 1 1 2 4 4 5 4 1 1 1 1 1;
#P newex 92 149 180 9109513 t b l b;
#P newex 191 294 48 9109513 zl group 3;
#B color 5;
#P newex 92 231 40 9109513 uzi 3;
#B color 5;
#P message 134 232 40 9109513 sort 1 1;
#N coll ;
#P newobj 177 271 53 9109513 coll;
#B color 5;
#P newex 177 230 44 9109513 pack 0 0;
#B color 5;
#P newex 191 316 49 9109513 print histo;
#B color 5;
#P newex 177 207 46 9109513 histo;
#B color 5;
#P message 230 180 31 9109513 clear;
#P connect 10 0 1 0;
#P connect 8 1 10 0;
#P fasten 8 0 6 0 97 199 97 199;
#P fasten 8 0 5 0 97 200 139 200;
#P connect 9 0 8 0;
#P fasten 8 2 0 0 267 174 235 174;
#P connect 4 1 7 0;
#P connect 7 0 2 0;
#P fasten 6 0 4 0 97 267 182 267;
#P fasten 0 0 1 0 235 202 182 202;
#P fasten 0 0 4 0 235 257 182 257;
#P fasten 5 0 4 0 139 267 182 267;
#P connect 3 0 4 0;
#P connect 1 1 3 1;
#P connect 1 0 3 0;
#P window clipboard copycount 11;

On 5/28/08, yair reshef wrote:
>
> brain freeze, whats the way to find 3 most recurring memebrs of a stream o
> numbers.

#132359
May 28, 2008 at 12:45pm

get L objects from Peter Elsea,
Lmost does exactly that.

http://arts.ucsc.edu/EMS/Music/research/Lobjects.readme.html

#132360
May 28, 2008 at 12:48pm

hmm, well maybe not exactly…

#132361
May 28, 2008 at 1:07pm

but it works too…

max v2;
#N vpatcher 20 74 620 474;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 90 121 36 196617 zl reg;
#P button 94 71 15 0;
#P newex 92 93 40 196617 uzi 3;
#P newex 121 223 32 196617 print;
#P newex 120 188 55 196617 zl group 3;
#P newex 78 180 27 196617 lfilt;
#P newex 95 160 35 196617 lmost;
#P message 159 91 124 196617 1 1 1 2 4 4 5 4 1 1 1 1 1;
#P connect 7 0 2 0;
#P connect 5 0 7 0;
#P connect 6 0 5 0;
#P connect 7 0 1 0;
#P connect 1 0 2 1;
#P fasten 2 0 7 1 83 204 42 204 42 117 121 117;
#P connect 0 0 7 1;
#P connect 1 0 3 0;
#P connect 3 0 4 0;
#P pop;

#132362
May 28, 2008 at 1:33pm

thnks, Lbuildset is also nice.t

On 5/28/08, xaf wrote:
>
>
> but it works too…
>
> max v2;
> #N vpatcher 20 74 620 474;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 90 121 36 196617 zl reg;
> #P button 94 71 15 0;
> #P newex 92 93 40 196617 uzi 3;
> #P newex 121 223 32 196617 print;
> #P newex 120 188 55 196617 zl group 3;
> #P newex 78 180 27 196617 lfilt;
> #P newex 95 160 35 196617 lmost;
> #P message 159 91 124 196617 1 1 1 2 4 4 5 4 1 1 1 1 1;
> #P connect 7 0 2 0;
> #P connect 5 0 7 0;
> #P connect 6 0 5 0;
> #P connect 7 0 1 0;
> #P connect 1 0 2 1;
> #P fasten 2 0 7 1 83 204 42 204 42 117 121 117;
> #P connect 0 0 7 1;
> #P connect 1 0 3 0;
> #P connect 3 0 4 0;
> #P pop;
>
>
>

#132363
May 28, 2008 at 1:49pm

lobjects is great, i can’t do without it anymore
cheers
xaf

#132364

You must be logged in to reply to this topic.