Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Record the min and max values from a set of values. More...
#include <bayeux/mygsl/min_max.h>
Public Member Functions | |
bool | is_valid () const |
Check validity. More... | |
double | get_min () const |
Return the minimum value. More... | |
double | get_max () const |
Return the maximum value. More... | |
double | get_median () const |
Return the median value. More... | |
double | get_width () const |
Return the width value. More... | |
double | get_half_width () const |
Return the half width value. More... | |
int | get_min_index () const |
Return the index of the minimum value. More... | |
int | get_max_index () const |
Return the index of the maximum value. More... | |
int | get_counter () const |
Return the value counter. More... | |
min_max () | |
Default constructor. More... | |
void | reset () |
Reset. More... | |
void | add (double value_) |
Add a value. More... | |
virtual void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
Smart printing. 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 |
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_) |
Record the min and max values from a set of values.
mygsl::min_max::min_max | ( | ) |
Default constructor.
void mygsl::min_max::add | ( | double | value_ | ) |
Add a value.
int mygsl::min_max::get_counter | ( | ) | const |
Return the value counter.
double mygsl::min_max::get_half_width | ( | ) | const |
Return the half width value.
double mygsl::min_max::get_max | ( | ) | const |
Return the maximum value.
int mygsl::min_max::get_max_index | ( | ) | const |
Return the index of the maximum value.
double mygsl::min_max::get_median | ( | ) | const |
Return the median value.
double mygsl::min_max::get_min | ( | ) | const |
Return the minimum value.
int mygsl::min_max::get_min_index | ( | ) | const |
Return the index of the minimum value.
double mygsl::min_max::get_width | ( | ) | const |
Return the width value.
bool mygsl::min_max::is_valid | ( | ) | const |
Check validity.
void mygsl::min_max::reset | ( | ) |
Reset.
|
virtual |
Smart printing.
Reimplemented from datatools::i_tree_dumpable.