Linear grid with fixed number of bins and fixed endpoint. More...
#include <uniform_grid.h>
Definition at line 333 of file uniform_grid.h.
Public Member Functions | |
uniform_grid_end (data_t start, data_t end, size_t n_bins) | |
Create a grid with n_bins bins starting at start and end . More... | |
![]() | |
uniform_grid () | |
Default 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 () |
Desc. | |
double | get_end () |
Desc. | |
double | get_width () |
Desc. | |
template<class resize_vec_t > | |
void | vector (resize_vec_t &v) const |
Fill a vector with the specified grid. More... | |
const data_t | operator[] (size_t i) const |
Get the grid point with index i ( ![]() | |
uniform_grid (const uniform_grid &ug) | |
Copy constructor. | |
uniform_grid & | operator= (const uniform_grid &ug) |
Copy from = operator. | |
Additional Inherited Members | |
![]() | |
uniform_grid (data_t start, data_t end, data_t width, size_t n_bins, bool log=false) | |
Construct a grid with specified values. More... | |
![]() | |
data_t | g_start |
The low-side of the first bin. | |
data_t | g_end |
The high-side of the last bin. | |
data_t | 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 start
must not be the same as end
.
Definition at line 343 of file uniform_grid.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).