MathGroup Archive 2000

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

Search the Archive

Re: BinCounts Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26102] Re: [mg26073] BinCounts Function
  • From: BobHanlon at aol.com
  • Date: Tue, 28 Nov 2000 01:55:45 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 11/22/00 2:26:19 AM, jcolon at mail.lawnet.fordham.edu writes:

>I'm having some difficulty in applying the BinCounts function to a simple
>data set.
>
>Load the statistics/datamanipulation programs
>dt1 = {1,2,3, etc.}
>BinCounts[dt1, {1,10,1}] produces the following output:  BinCounts[{1,2,3,
>etc.}, {1,10,1}]
>
>I use V. 3 (student version) with Windows '98.
>

Needs["Statistics`DataManipulation`"];

dt1 = Table[Random[Integer, {1, 10}], {100}];

bc1 = BinCounts[dt1, {1, 10, 1}]

{7, 9, 13, 15, 12, 12, 8, 10, 4}

Plus @@ bc1

90

bc2 = BinCounts[dt1, {.5, 10.5, 1}]

{10, 7, 9, 13, 15, 12, 12, 8, 10, 4}

Plus @@ bc2

100

bc1 == Rest[bc2]

True


Bob Hanlon


  • Prev by Date: Indefinite Integrals?
  • Next by Date: mathematica pacakages - technical trader
  • Previous by thread: Re: BinCounts Function
  • Next by thread: Re: BinCounts Function