MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: BinLists in Array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111611] Re: BinLists in Array
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 7 Aug 2010 01:32:52 -0400 (EDT)

BinLists[l, {{-Infinity, Infinity}},
 {Range[0, Max[l[[All, 2]]] + 3, 2]}]


Bob Hanlon

---- Murta <rodrigomurtax at gmail.com> wrote: 

=============
Hello All

   I Would like to split this array: l={{1, 0}, {1, 1}, {1, 2}, {2,
3}, {2, 4}}, by the second element of each group, to group what are
between 0-2, 2-4,4-6 and so on (just the second element)
   Using BinLists look like a good idea. I get my desirable result
with:
       BinLists[{{1, 0}, {1, 1}, {1, 2}, {2, 3}, {2, 4}}, {0, 10, 10},
{0, 10, 2}]

  But I would like to don't have to put any struction to the first
element (the "{0, 10, 10}" information)
  How I can ignore it? I tried something like
       BinLists[{{1, 0}, {1, 1}, {1, 2}, {2, 3}, {2, 4}},None, {0, 10,
2}]
       BinLists[{{1, 0}, {1, 1}, {1, 2}, {2, 3}, {2, 4}},Automatic,
{0, 10, 2}]
       BinLists[{{1, 0}, {1, 1}, {1, 2}, {2, 3}, {2, 4}},All, {0, 10,
2}]
  But isn't the way.

Thanks in advande
Murta



  • Prev by Date: Re: Convex hull in 3D
  • Next by Date: Strange slow performance on macbook pro
  • Previous by thread: BinLists in Array
  • Next by thread: Re: BinLists in Array