Algorithms

Moderators: None (Apply to moderate this forum)
Number of threads: 384
Number of posts: 762

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
histogram Posted by mega1 on 5 Feb 2011 at 5:16 PM
I am trying to plot a histogram.the first one is a actual data. when i try to vary number of bins, 0.5(y=0.0),1.5(y=0.0),2.5(y=0.0)(x positions) gets invalid data.how can i find those invalid data bins.

1)bin width :1 min -0 max-10 number of bins :10 -valid data
x y bin
0.000000 0.000000 - 0
1.000000 1.000000-1
2.000000 2.000000-2
3.000000 3.000000-3

2)bin width :0.5 min -0;max ;10 number of bins : 20

x y bin
0.000000 0.000000 -0
0.500000 0.000000 -1
1.000000 1.000000-2
1.500000 0.000000 -3
2.000000 2.000000-4
2.500000 0.000000 -5
3.000000 3.000000 -6

Report
This post has been deleted. Posted by mbokdarmi on 18 Dec 2011 at 3:36 AM
This post has been deleted.
Report
Re: histogram Posted by mbokdarmi on 18 Dec 2011 at 3:38 AM
Hi, what is function of these codes?? I dont know about histogram but I wanna learn about it :D












_______________________________________________________________________
Ahmed NoerPecinta Janda
Report
Re: histogram Posted by Arkadi on 20 Mar 2012 at 4:42 AM
The numbers you print are only numbers. They can not be valid or invalid.

What do you expect to get?
How do you compute bin value?
Do you create unintended overlaps?




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.