How can I convert
1.0 -> 0.95
0.91 -> 0.95
0.9 -> 0.85
etc.
I’m doing a histogram of values in the range of 0 (exclusive) and 1 (inclusive).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you’re doing a histogram, you don’t round the numbers. You define a bunch of bins and count the number of points in each bin.
You can write code to do this yourself, or just use
numpy.histogram.