|
Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Compute a histogram on a 1D grid. More...
Public Member Functions | |
| Histogram (const dg::Grid1d &g1d, const std::vector< double > &in) | |
| Construct a histogram from number of bins and an input vector. | |
| double | binwidth () |
| get binwidth | |
| double | operator() (double x) const |
| Access computed histogram. | |
Compute a histogram on a 1D grid.
| container |
|
inline |
Construct a histogram from number of bins and an input vector.
| g1d | grid on which to compute the histogram ( grid.h() is the binwidth) |
| in | input vector (if grid.x0() < in[i] <grid.x1() it falls in a bin) |
|
inline |
get binwidth
|
inline |
Access computed histogram.
| x |