I am using numerics.mathdotnet to calculate the histogram of sorted data. My dataset looks as following
row1,a,b,c
row2,x,y,z
...
and my histogram is calculated, let's say on column 4 which has [c,z,...]. After the histogram generation and plotted onto a graph (x-axis: buckets, y-axis: count of rows in that bucket), i want to get the rows that fall into a particular bucket.
My solution: I pass the start and end of bucket (calculated using bucket width) to function, iterate over all the rows and check if that row falls within the bucket range.
Problem: For some bucket widths, it shows count to be > 0 but when I fetch it does not find any rows within that bucket.
Question: Is there any way to get the data along with histogram results? eg: { bucketRange_start: x, bucketRange_end: y, count: n, data: [...] }