Class uniform_grid_log_end_width (o2scl)

O2scl : Class List

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 at start and ending at end.

The value of n_bins must be larger than zero and start must not be the same as end.

inline uniform_grid_log_end_width()

Default constructor.