Questions tagged [bins]
235 questions
0
votes
1 answer
How can i in a smart way sort my data into different bins
Hello i am using pandas to import data from two excel files, an example of the data contained in one of the files is shown below. Basically i am trying to find the timestamps which are identical in the two files and then sort e.g the data from the…

Nicklas Koldkjær
- 61
- 9
0
votes
0 answers
histogram plotting matplotlib
I have an array of numbers and i have an array which has the value of how many time element of numbers is used. I have to create histogram plot which show how many times element from numbers list is used. I know that histogram plot shows…

Beyza
- 53
- 8
0
votes
2 answers
Regarding Binning of the values in python
I have a set of values as :-
1.2
1.0
2.6
2.4
2.8
5.1
2.5
5.4
1.3
1.1
10.3
4.1
3.4
3.2
6.1
6.3
9.0
8.6
7.1
3.2
4.3
15.0
12.3
13.1
17.4
10.2
11.7
14.6
16.3
Now, how can i bin them into groups such that the decimal values…

D.H.N
- 69
- 1
- 9
0
votes
1 answer
R, awk, sed: merge bins and output central overlaps and then central + neighboring overlaps
I have two files with some ranges which I want to overlap and and retrieve the results based on exact match and partial match. An example will make it clear.
fileA:
chr1 200 400 E1
chr1 400 600 E2
chr1 600 800 …

Newbie
- 411
- 5
- 18
0
votes
1 answer
tableau: creating bins for variable bound between 0 and 1
I have just started using Tableau and I have run into a problem. I want to create a histogram of the percentage of loans that have not been paid back. I created a variable called 'Delinquent num' coding the loans that have not been paid back as 1…

user3426752
- 415
- 1
- 8
- 17
0
votes
1 answer
Unequal width binned histogram in python
I have an array with probability values stored in it. Some values are 0. I need to plot a histogram such that there are equal number of elements in each bin. I tried using matplotlibs hist function but that lets me decide number of bins. How do I go…

duckvader
- 71
- 13
0
votes
1 answer
python matplotlib edit histogram
I used matplotlib to create a histogram. There are still problems I couldn't solve on my own or with the help of the internet.
How can I change the color of certain bins? In detail I want to change the color of bins with: a.) value bin < 1.15 red,…

Bonjamic
- 1
- 1
0
votes
1 answer
R: Control number of histogram bins
I am using the hist-function to analyze some data I generated. For an analysis-assay I would like to precisely control the number of histogram bins.
I know the "break-argument" and I can see that in many cases the number of bins is in a direct…

Arne
- 337
- 1
- 6
- 17
0
votes
1 answer
Python: how to split one variable according to bins from another variable?
I want to create an histogram of variable V based on the bins of variable X. To do this, I read an Excel file which looks like this:
Column X Column V
99.9 0
100.0 3
25.17 2
39.45 1
66.52 1
17.17 6
9.25 2
86.11…

FaCoffee
- 7,609
- 28
- 99
- 174
0
votes
0 answers
MATLAB Surf plot with bins
I have a nxm matrix where n is the number of bins in the x axis and m is the number of bins in the y axis. Each position in the matrix has a number which shows how many data points are in matching x-y bin ranges from my raw data and when surf…

user3536870
- 249
- 1
- 2
- 13
0
votes
1 answer
How to find expected value in bins
I generated 200 random numbers with the random variable that Y~Exponential(0.8) using:
n=rexp(200,0.8)
bins=cut(n,breaks=c(0,1,2,3,max(n)))
I am trying to compute the expected number of counters for each bin knowing that Y~Exponential(0.8). How can…
user5528113
0
votes
0 answers
matplotlib histogram bin spacing for fixed-width bins
I'm using matplotlib to create a histogram with bins fixed to be one pixel wide. I would like to get rid of the white space between these bins. This essentially means setting the x axis to be one pixel per value on the axis (i.e.: there should 100…

ztweed
- 9
- 4
0
votes
1 answer
Define Coverage Bin in System Verilog using Incremental Values
I am trying to define coverage using systemverilog for a large coverage area. For example, I would like to define a coverage bin that starts at 24'h000000, ends at 24'h001ff0, and increments by 24'h000008. I have tried this so far; however, it…

andrewlaguna824
- 45
- 1
- 8
0
votes
1 answer
An R-like approach to averaging by histogram bin
as a person transitioning from Matlab, I wish any advice for a more efficient way to find the average of DepDelay values whose indices (indxs) fall within histogram bins (edges). In Matlab and my current R script, I have these commands:
edges …

Benjamin Levy
- 333
- 6
- 19
0
votes
0 answers
Bins with two characteristics matlab
I have data stored for N=1000 elements (air conditioners, ACs).
Each element has a number of characteristics, mainly their temperature, and the binary state of the ON/OFF switch. All this data is already generated and stored in the following way:…

titus.andronicus
- 517
- 1
- 7
- 19