MathGroup Archive 1995

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg2058] histogram
  • From: michael.probst at (Michael Probst)
  • Date: Sat, 23 Sep 1995 20:33:29 -0400
  • Organization: University of Innsbruck, Austria

Hi !
I have a rather simple mma - question:
What is the best (fastest) way to generate histograms ?
That is: I have a list of data and I want to fill the data
into another list which elements are zero at the beginning
and are incramanted by one if the data is in the interval 
corresponding to the respective element of the second list
which is just the histogram.
I can use a Do[] but this seems clumsy:
hist={0,0,0, .... };
  ind=myindexfunction[data[[i]]]; hist[[ind]]=hist[[ind]]+1,

Thanks a lot !

michael.probst at

  • Prev by Date: Proof Generator using Rules of Inference
  • Next by Date: Help about the Fourier transform command
  • Previous by thread: Re: Proof Generator using Rules of Inference
  • Next by thread: Re: histogram