Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | List of all members
mygsl::min_max Class Reference

Record the min and max values from a set of values. More...

#include <bayeux/mygsl/min_max.h>

Inheritance diagram for mygsl::min_max:
datatools::i_tree_dumpable

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_)
 

Detailed Description

Record the min and max values from a set of values.

Constructor & Destructor Documentation

◆ min_max()

mygsl::min_max::min_max ( )

Default constructor.

Member Function Documentation

◆ add()

void mygsl::min_max::add ( double  value_)

Add a value.

◆ get_counter()

int mygsl::min_max::get_counter ( ) const

Return the value counter.

◆ get_half_width()

double mygsl::min_max::get_half_width ( ) const

Return the half width value.

◆ get_max()

double mygsl::min_max::get_max ( ) const

Return the maximum value.

◆ get_max_index()

int mygsl::min_max::get_max_index ( ) const

Return the index of the maximum value.

◆ get_median()

double mygsl::min_max::get_median ( ) const

Return the median value.

◆ get_min()

double mygsl::min_max::get_min ( ) const

Return the minimum value.

◆ get_min_index()

int mygsl::min_max::get_min_index ( ) const

Return the index of the minimum value.

◆ get_width()

double mygsl::min_max::get_width ( ) const

Return the width value.

◆ is_valid()

bool mygsl::min_max::is_valid ( ) const

Check validity.

◆ reset()

void mygsl::min_max::reset ( )

Reset.

◆ tree_dump()

virtual void mygsl::min_max::tree_dump ( std::ostream &  out_ = std::clog,
const std::string &  title_ = "",
const std::string &  indent_ = "",
bool  inherit_ = false 
) const
virtual

Smart printing.

Reimplemented from datatools::i_tree_dumpable.


The documentation for this class was generated from the following file: