|
|
| We don't bite newbies here... much | |
| PerlMonks |
Help with Histogramsby cmr72 (Initiate) |
| on Aug 28, 2012 at 22:43 UTC ( #990347=perlquestion: print w/ replies, xml ) | Need Help?? |
|
cmr72 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello All,
I am a newbie. I've been a round PERL for a while but never had to really get down to the nitty gritty of it. I am not a programmer and usually troll around looking for answers. Today I created a random number generator in hopes to pipe the output into a histogram set for plotting in GNUPLOT. While I understand how to generate a hash to tally the points, I am totally lost on creating bins, whether automatically spaced or with an argument from the user. Here is the code that I have so far:
Random number generator: Histogram creator: So if there are values -1, -1.5, -2, 2, 1, 0, 1, I would hope to see the following (if the bin range was between -2:2) (-2) 3 (0) 1 (2) 3 Or something like that... Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||