![]() |
Pteros
2.0
Molecular modeling library for human beings!
|
Simple histogram class. More...
#include <utilities.h>
Public Member Functions | |
| Histogram (float minval, float maxval, int n) | |
| void | create (float minval, float maxval, int n) |
| int | get_bin (float v) |
| void | add (float v, float weight=1.0) |
| void | add (const std::vector< float > &v) |
| void | add (const std::vector< float > &v, const std::vector< float > &w) |
| void | add_cylindrical (float r, float w, float sector, float cyl_h) |
| void | add_sel_cylindrical (const Selection &sel, Vector3f_const_ref pivot, Array3i_const_ref dims, float sector, float cyl_h) |
| Add whole selection to cylindrical histogram. | |
| void | normalize (float norm=0) |
| float | value (int i) const |
| float | position (int i) const |
| float | delta () const |
| Eigen::VectorXd & | values () |
| Eigen::VectorXd & | positions () |
| int | num_bins () const |
| void | save_to_file (const std::string &fname, float x_shift=0) |
Simple histogram class.