Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Binning list numbers' topicStudent Support Forum > General > "Binning list numbers"

Next Comment >Help | Reply To Topic
Author Comment/Response
Jim
07/12/04 03:36am

Hello

I have a list of this kind:

{0.3,4},{0,4,2},{0.8,3},{1.2,4},{1.4,7},{3.3,5},{3.4,2},{3.5,6},{4.2,3},

and I want to bin them with respect only to the first number of every list element.

so if I want a bin of 0.5

(i.e. (0,0.5],(0.5,1],(1,1.5],(1.5,2],(2,2.5]...)

then is it possible to bin them:

{{0.3,4},{0,4,2}},{{0.8,3}},{{1.2,4},{1.4,7}},{{3.3,5},{3.4,2},{3.5,6}},{{4.2,3}},..

like this?

Thank you very much!



URL: ,

Subject (listing for 'Binning list numbers')
Author Date Posted
Binning list numbers Jim 07/12/04 03:36am
Re: Binning list numbers Henry Lamb 07/16/04 02:10am
Next Comment >Help | Reply To Topic