Is there a generic solution out there to create a 1-D histogram array of data from an input 1-D array of double-precision data?
Not looking to plot the histogram in C, I just need something to create the histogram 1-D array by binning the data.
Could someone help me understand what the binning (e.g. loop) code may look like in C? Assume the min and max data points are known and we want to use a variable number (e.g. hist_pts) of different bins.
1 Answer