![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
One dimensional histogram. More...
#include <bayeux/mygsl/histogram.h>
Classes | |
| class | |
| PDF associated to a one dimensional histogram. More... | |
Public Member Functions | |
| const datatools::properties & | get_auxiliaries () const |
| datatools::properties & | grab_auxiliaries () |
| double | get_binning_info () const |
| bool | is_uniform_binning () const |
| bool | is_logarithmic_binning () const |
| bool | is_any_binning () const |
| double | get_uniform_binning () const |
| double | get_logarithmic_binning () const |
| bool | is_initialized () const |
| void | initialize (size_t n_, double min_, double max_, unsigned int mode_=BIN_MODE_LINEAR) |
| void | init (const std::vector< double > &ranges_) |
| void | initialize (const std::vector< double > &ranges_) |
| void | initialize (const histogram &h_, const std::vector< std::string > &imported_aux_prefixes_) |
| void | initialize (const histogram_2d &h_, int bin_axis_, const std::vector< std::string > &imported_aux_prefixes_) |
| void | init (size_t n_, double min_, double max_, unsigned int mode_=BIN_MODE_LINEAR) |
| void | destroy () |
| Destroy the histogram structure, making the histogram invalid. More... | |
| histogram () | |
| histogram (size_t n_, double min_, double max_, unsigned int mode_=BIN_MODE_LINEAR) | |
| histogram (const std::vector< double > &ranges_) | |
| virtual | ~histogram () |
| histogram (const histogram &) | |
| histogram & | operator= (const histogram &) |
| bool | is_inside (double x_) const |
| void | accumulate (double x_, double weight_=1.0) |
| void | fill (double x_, double weight_=1.0) |
| void | fill (int i_, double safe_delta_=1e-7, double weight_=1.0) |
| void | set (size_t i_, double value_) |
| double | underflow () const |
| double | overflow () const |
| double | min () const |
| double | max () const |
| size_t | bins () const |
| double | get (size_t i_) const |
| double | at (size_t i_) const |
| double | operator[] (size_t i_) const |
| bool | find (double x_, size_t &i_) const |
| void | reset () |
| Reset the bin contents to zero. More... | |
| bool | can_rebin (size_t new_bins_) const |
| void | rebin (size_t new_bins_) |
| bool | are_underflow_overflow_available () const |
| void | invalidate_underflow_overflow () |
| void | reset_underflow_overflow () |
| void | increment_underflow (double weight_) |
| void | increment_overflow (double weight_) |
| bool | is_counts_available () const |
| int32_t | counts () const |
| void | invalidate_counters () |
| void | reset_counters () |
| void | reset_counts () |
| void | increment_counts () |
| void | invalidate_counts () |
| double | min_val () const |
| double | max_val () const |
| size_t | min_bin () const |
| size_t | max_bin () const |
| double | mean () const |
| double | sigma () const |
| double | sum () const |
| double | sum (size_t begin_, size_t end_) const |
| void | to_stream (std::ostream &) const |
| void | from_stream (std::istream &) |
| void | print (std::ostream &, int precision_=9) const |
| void | print_ascii (std::ostream &, int mode_=0) const |
| void | dump (std::ostream &, int precision_=9) const |
| bool | has_size (size_t bins_) const |
| std::pair< double, double > | get_range (size_t i_) const |
| void | shift (double s_) |
| void | scale (double s_) |
| void | negate () |
| void | zero () |
| bool | same (const histogram &) const |
| void | add (const histogram &) |
| void | sub (const histogram &) |
| void | mul (const histogram &) |
| void | div (const histogram &) |
| histogram & | operator+= (const histogram &) |
| histogram & | operator-= (const histogram &) |
| histogram & | operator *= (const histogram &) |
| histogram & | operator/= (const histogram &) |
| histogram & | operator+= (double) |
| histogram & | operator-= (double) |
| histogram & | operator- () |
| histogram & | operator *= (double) |
| histogram & | operator/= (double) |
| virtual void | tree_dump (std::ostream &out=std::clog, const std::string &title="", const std::string &indent="", bool inherit=false) const |
| Main interface method for smart dump. More... | |
Public Member Functions inherited from datatools::i_serializable | |
| i_serializable () | |
| Default constructor. More... | |
| virtual | ~i_serializable () |
| Destructor. More... | |
| virtual const std::string & | get_serial_tag () const =0 |
| Return the serialization string identifier of the class. More... | |
Public Member Functions inherited from datatools::i_tree_dumpable | |
| i_tree_dumpable () | |
| Constructor. More... | |
| virtual | ~i_tree_dumpable () |
| Destructor. More... | |
| virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
| Main new interface method for printing. More... | |
| void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
| Printing with jsonized options. More... | |
| void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
| Printing with jsonized options. More... | |
| void | tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const |
| void | tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const |
| void | smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const |
Friends | |
| histogram | operator+ (const histogram &, const histogram &) |
| histogram | operator- (const histogram &, const histogram &) |
| histogram | operator * (const histogram &, const histogram &) |
| histogram | operator/ (const histogram &, const histogram &) |
| histogram | operator * (double, const histogram &) |
| histogram | operator * (const histogram &, double) |
| histogram | operator/ (const histogram &, double) |
Additional Inherited Members | |
Public Types inherited from datatools::i_tree_dumpable | |
| enum | ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 } |
| Enumeration for standard output streams. More... | |
Static Public Member Functions inherited from datatools::i_tree_dumpable | |
| static const boost::property_tree::ptree & | empty_options () |
| static boost::property_tree::ptree | make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false) |
| static std::ostream & | last_skip_tag (std::ostream &out_) |
| static std::ostream & | skip_tag (std::ostream &out_) |
| static std::ostream & | last_tag (std::ostream &out_) |
| static std::ostream & | tag (std::ostream &out_) |
One dimensional histogram.
| mygsl::histogram::histogram | ( | ) |
| mygsl::histogram::histogram | ( | size_t | n_, |
| double | min_, | ||
| double | max_, | ||
| unsigned int | mode_ = BIN_MODE_LINEAR |
||
| ) |
| mygsl::histogram::histogram | ( | const std::vector< double > & | ranges_ | ) |
|
virtual |
| mygsl::histogram::histogram | ( | const histogram & | ) |
| void mygsl::histogram::accumulate | ( | double | x_, |
| double | weight_ = 1.0 |
||
| ) |
| void mygsl::histogram::add | ( | const histogram & | ) |
| bool mygsl::histogram::are_underflow_overflow_available | ( | ) | const |
| double mygsl::histogram::at | ( | size_t | i_ | ) | const |
| size_t mygsl::histogram::bins | ( | ) | const |
| bool mygsl::histogram::can_rebin | ( | size_t | new_bins_ | ) | const |
| int32_t mygsl::histogram::counts | ( | ) | const |
| void mygsl::histogram::destroy | ( | ) |
Destroy the histogram structure, making the histogram invalid.
| void mygsl::histogram::div | ( | const histogram & | ) |
| void mygsl::histogram::dump | ( | std::ostream & | , |
| int | precision_ = 9 |
||
| ) | const |
| void mygsl::histogram::fill | ( | double | x_, |
| double | weight_ = 1.0 |
||
| ) |
| void mygsl::histogram::fill | ( | int | i_, |
| double | safe_delta_ = 1e-7, |
||
| double | weight_ = 1.0 |
||
| ) |
| bool mygsl::histogram::find | ( | double | x_, |
| size_t & | i_ | ||
| ) | const |
| void mygsl::histogram::from_stream | ( | std::istream & | ) |
| double mygsl::histogram::get | ( | size_t | i_ | ) | const |
| const datatools::properties& mygsl::histogram::get_auxiliaries | ( | ) | const |
| double mygsl::histogram::get_binning_info | ( | ) | const |
| double mygsl::histogram::get_logarithmic_binning | ( | ) | const |
| std::pair<double,double> mygsl::histogram::get_range | ( | size_t | i_ | ) | const |
| double mygsl::histogram::get_uniform_binning | ( | ) | const |
| datatools::properties& mygsl::histogram::grab_auxiliaries | ( | ) |
| bool mygsl::histogram::has_size | ( | size_t | bins_ | ) | const |
| void mygsl::histogram::increment_counts | ( | ) |
| void mygsl::histogram::increment_overflow | ( | double | weight_ | ) |
| void mygsl::histogram::increment_underflow | ( | double | weight_ | ) |
| void mygsl::histogram::init | ( | const std::vector< double > & | ranges_ | ) |
| void mygsl::histogram::init | ( | size_t | n_, |
| double | min_, | ||
| double | max_, | ||
| unsigned int | mode_ = BIN_MODE_LINEAR |
||
| ) |
| void mygsl::histogram::initialize | ( | size_t | n_, |
| double | min_, | ||
| double | max_, | ||
| unsigned int | mode_ = BIN_MODE_LINEAR |
||
| ) |
| void mygsl::histogram::initialize | ( | const std::vector< double > & | ranges_ | ) |
| void mygsl::histogram::initialize | ( | const histogram & | h_, |
| const std::vector< std::string > & | imported_aux_prefixes_ | ||
| ) |
| void mygsl::histogram::initialize | ( | const histogram_2d & | h_, |
| int | bin_axis_, | ||
| const std::vector< std::string > & | imported_aux_prefixes_ | ||
| ) |
| void mygsl::histogram::invalidate_counters | ( | ) |
| void mygsl::histogram::invalidate_counts | ( | ) |
| void mygsl::histogram::invalidate_underflow_overflow | ( | ) |
| bool mygsl::histogram::is_any_binning | ( | ) | const |
| bool mygsl::histogram::is_counts_available | ( | ) | const |
| bool mygsl::histogram::is_initialized | ( | ) | const |
| bool mygsl::histogram::is_inside | ( | double | x_ | ) | const |
| bool mygsl::histogram::is_logarithmic_binning | ( | ) | const |
| bool mygsl::histogram::is_uniform_binning | ( | ) | const |
| double mygsl::histogram::max | ( | ) | const |
| size_t mygsl::histogram::max_bin | ( | ) | const |
| double mygsl::histogram::max_val | ( | ) | const |
| double mygsl::histogram::mean | ( | ) | const |
| double mygsl::histogram::min | ( | ) | const |
| size_t mygsl::histogram::min_bin | ( | ) | const |
| double mygsl::histogram::min_val | ( | ) | const |
| void mygsl::histogram::mul | ( | const histogram & | ) |
| void mygsl::histogram::negate | ( | ) |
| histogram& mygsl::histogram::operator *= | ( | double | ) |
| histogram& mygsl::histogram::operator+= | ( | double | ) |
| histogram& mygsl::histogram::operator- | ( | ) |
| histogram& mygsl::histogram::operator-= | ( | double | ) |
| histogram& mygsl::histogram::operator/= | ( | double | ) |
| double mygsl::histogram::operator[] | ( | size_t | i_ | ) | const |
| double mygsl::histogram::overflow | ( | ) | const |
| void mygsl::histogram::print | ( | std::ostream & | , |
| int | precision_ = 9 |
||
| ) | const |
| void mygsl::histogram::print_ascii | ( | std::ostream & | , |
| int | mode_ = 0 |
||
| ) | const |
| void mygsl::histogram::rebin | ( | size_t | new_bins_ | ) |
| void mygsl::histogram::reset | ( | ) |
Reset the bin contents to zero.
| void mygsl::histogram::reset_counters | ( | ) |
| void mygsl::histogram::reset_counts | ( | ) |
| void mygsl::histogram::reset_underflow_overflow | ( | ) |
| bool mygsl::histogram::same | ( | const histogram & | ) | const |
| void mygsl::histogram::scale | ( | double | s_ | ) |
| void mygsl::histogram::set | ( | size_t | i_, |
| double | value_ | ||
| ) |
| void mygsl::histogram::shift | ( | double | s_ | ) |
| double mygsl::histogram::sigma | ( | ) | const |
| void mygsl::histogram::sub | ( | const histogram & | ) |
| double mygsl::histogram::sum | ( | ) | const |
| double mygsl::histogram::sum | ( | size_t | begin_, |
| size_t | end_ | ||
| ) | const |
| void mygsl::histogram::to_stream | ( | std::ostream & | ) | const |
|
virtual |
Main interface method for smart dump.
Reimplemented from datatools::i_tree_dumpable.
| double mygsl::histogram::underflow | ( | ) | const |
| void mygsl::histogram::zero | ( | ) |
1.8.15