MathGroup Archive 2010

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

Search the Archive

Re: BinLists in Array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111616] Re: BinLists in Array
  • From: Rodrigo Murta <rodrigomurta at hotmail.com>
  • Date: Sat, 7 Aug 2010 06:21:42 -0400 (EDT)

Thanks!... very elegant solution. It's this that I was looking for.

> Date: Fri, 6 Aug 2010 09:04:18 -0400
> From: hanlonr at cox.net
> To: rodrigomurtax at gmail.com; mathgroup at smc.vnet.net
> Subject: Re: [mg111583] BinLists in Array
>
>
> 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: Default and head in function argument
  • Next by Date: Combine these displays
  • Previous by thread: Re: BinLists in Array
  • Next by thread: Nonlinear fitting question