Function vector_to_bins (o2scl)

O2scl : Function List

template<class vec_t, class vec2_t>
void o2scl::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() .

Todo

In function pair_calibrate()

  • Future: Create a version where the user specifies log vs. linear instead of autodetecting.

  • Future: Compare this algorithm to linear_or_log() and document the differences.