Class uniform_grid_log_end_width (o2scl)¶
-
template<class data_t = double>
class uniform_grid_log_end_width : public o2scl::uniform_grid<double>¶ Logarithmic grid with fixed endpoint and fixed bin size.
Note
If no integer exponent of the width matches the ratio between the end and the start, then the last bin will be larger than all of the other bins. If finite-precision is causing the last bin to be too large, then this can sometimes be fixed by decreasing the bin width by a small amount.
Public Functions
-
inline uniform_grid_log_end_width(data_t start, data_t end, data_t width)¶
Create a logarithmic grid with bins of size
width
starting atstart
and ending atend
.The value of
n_bins
must be larger than zero andstart
must not be the same asend
.
-
inline uniform_grid_log_end_width()¶
Default constructor.
-
inline uniform_grid_log_end_width(data_t start, data_t end, data_t width)¶