Forum

Headache with 0 and 1 ! Binsize

Hi v4 addict,

I would like to get the “binsize” of a spread containing 0 and 1.

For example from the spread :
0
0
1
1
1
0
0
1

I would like to obtain :
2
3
2
1

Seems to be simple, but I tried with “Sift” “Occurence” and “sort” node without success ( And I have to admit that I spend a lot of time on this pb…)

Thanks for your help.

headache.v4p (8.1 kB)

I made a quick plugin and i think it suite your needs.

  • tsou

binsize(01)plugin (8.4 kB)

Hi tsou,

Thanks a lot for this plugin, it’s exactly what I need, it must has take you some time to do this, thanks you very much !

Ouhouu !!! That’s great !