Linear grid with fixed number of bins and fixed bin size. More...
#include <uniform_grid.h>
Definition at line 351 of file uniform_grid.h.
Public Member Functions | |
| uniform_grid_width (data_t start, data_t width, size_t n_bins) | |
Create a grid with n_bins bins starting at start with size width. More... | |
Public Member Functions inherited from o2scl::uniform_grid< double > | |
| uniform_grid () | |
| Default constructor. | |
| uniform_grid (const uniform_grid &ug) | |
| Copy constructor. | |
| size_t | get_nbins () const |
| Get the number of bins (regions in between grid points) More... | |
| size_t | get_npoints () const |
| Get the number of points in the grid (always get_nbins()+1) More... | |
| bool | is_log () const |
| Return true if the grid is logarithmic. More... | |
| double | get_start () |
| Get the first grid point. | |
| double | get_end () |
| Get the last grid point. | |
| double | get_width () |
| Get the interval between grid points. | |
| void | vector (resize_vec_t &v) const |
| Fill a vector with the specified grid. More... | |
| const double | operator[] (size_t i) const |
Get the grid point with index i ( ) | |
| uniform_grid & | operator= (const uniform_grid &ug) |
| Copy from = operator. | |
Additional Inherited Members | |
Protected Member Functions inherited from o2scl::uniform_grid< double > | |
| uniform_grid (double start, double end, double width, size_t n_bins, bool log=false) | |
| Construct a grid with specified values. More... | |
Protected Attributes inherited from o2scl::uniform_grid< double > | |
| double | g_start |
| The low-side of the first bin. | |
| double | g_end |
| The high-side of the last bin. | |
| double | g_width |
| The width of each bin. More... | |
| size_t | g_n_bins |
| The number of bins. | |
| bool | g_log |
| If true, use a logarithmic scale. | |
|
inline |
The value of n_bins must be larger than zero and width must not be zero.
Definition at line 361 of file uniform_grid.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).