Function vector_to_bins (o2scl)¶
-
template<class
vec_t
, classvec2_t
>
voido2scl
::
vector_to_bins
(const vec_t &v_grid, vec2_t &v_bins, int verbose = 1)¶ Take a vector of data and convert it to a vector of bin edges automatically adjusting for increasing or decreasing and linear or logarithmic spacing.
This function is used in table3d::to_hist_2d() .
- Idea for Future:
Create a version where the user specifies log vs. linear instead of autodetecting.
- Idea for Future:
Compare this algorithm to linear_or_log() and document the differences.