|
Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Compute a histogram on a 2D grid. More...
Public Member Functions | |
| Histogram2D (const dg::Grid2d &g2d, const std::vector< double > &inx, const std::vector< double > &iny) | |
| Construct a histogram from number of bins and an input vector. | |
| double | operator() (double x, double y) const |
| Access computed histogram. | |
Compute a histogram on a 2D grid.
| container |
|
inline |
Construct a histogram from number of bins and an input vector.
| g2d | grid on which to compute the histogram ( grid.h() is the binwidth) |
| inx | input vector in x - direction (if grid.x0() < in[i] <grid.x1() it falls in a bin) |
| iny | input vector in y - direction (if grid.y0() < in[i] <grid.y1() it falls in a bin) |
|
inline |
Access computed histogram.
| x | |
| y |