By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,402 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,402 IT Pros & Developers. It's quick & easy.

Creating intervals

P: 1
Hey,
I wondered if anyone knows how I can create an array to put some data into intervals ready for a histogram?? I have put data from a file into program using malloc. Then I was thinking to make the data go into the right intervals that I could do each piece of data/intervalsize which would give me a result from integer division of 0, 1, 2 etc. Is this along the right lines??
Thanks!
Mar 11 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,646
Hey,
I wondered if anyone knows how I can create an array to put some data into intervals ready for a histogram?? I have put data from a file into program using malloc. Then I was thinking to make the data go into the right intervals that I could do each piece of data/intervalsize which would give me a result from integer division of 0, 1, 2 etc. Is this along the right lines??
Thanks!
Hi. This depends on the data. Post the code that you have so far and tell us what the data type is and what interval you want
Mar 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.