MathGroup Archive 2005

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

Search the Archive

BinCounts

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60918] BinCounts
  • From: Alberto Verga <Alberto.Verga at laposte.net>
  • Date: Mon, 3 Oct 2005 04:06:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Why does BinCounts[] give lists with unpredictable Dimensions[]?

With[{n = 205}, ll = RandomArray[NormalDistribution[0, 1], {n}];
Dimensions[BinCounts[ll, {Min[ll], Max[ll], (Max[ll] - Min[ll])/n}]]]



You may try different values of n (or the same n and different samples of 
the random numbers), and verify that the lenght of the list depends on the 
random realization: somtimes you get n, somtimes n+1.

Alberto Verga


      Alberto Verga

      IRPHE - Université de Provence

      49, rue F. Joliot-Curie, BP 146,

      13384 Marseille, France





  • Follow-Ups:
  • Prev by Date: Re: suppressing graph objects
  • Next by Date: Re: How to "search" in a matrix?
  • Previous by thread: Re: ImplicitPlot in 3D of several equations
  • Next by thread: Re: BinCounts