Creating intervals

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiggy
    New Member
    • Mar 2007
    • 1

    #1

    Creating intervals

    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!
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by tiggy
    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

    Comment

    Working...