Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Base class for all sampling models. More...
#include <bayeux/mygsl/base_sampling.h>
Public Member Functions | |
base_sampling () | |
Default constructor. More... | |
virtual | ~base_sampling () |
Destructor. More... | |
virtual double | get_min () const =0 |
Return the minimum sample. More... | |
virtual double | get_max () const =0 |
Return the maximum sample. More... | |
virtual std::size_t | get_nsteps () const =0 |
Return the number of steps. More... | |
virtual std::size_t | get_nsamples () const =0 |
Return the number of samples. More... | |
virtual bool | is_initialized () const =0 |
Check the initialization status of the sampling. More... | |
virtual void | initialize (const datatools::properties &)=0 |
Initialize from a set of properties. More... | |
virtual void | reset ()=0 |
Reset/invalidate the sampling. More... | |
virtual bool | value_to_index (const double x_, std::size_t &left_sample_index_, sampling::index_classification_type &classification_) const =0 |
Return the left sample index and a classification associated to a value. More... | |
bool | value_to_index (const double x_, std::size_t &left_sample_index_) const |
Return the left sample index associated to a value. More... | |
virtual sampling::index_classification_type | index_to_value (const std::size_t sample_index_, double &value_) const =0 |
Return the value associated to a given sample index. More... | |
virtual bool | has_index (const double value_, const std::size_t sample_index_) const |
Check if the checked value is associated to the given sample index. More... | |
std::size_t | get_first_index () const |
Return the first sample index. More... | |
std::size_t | get_last_index () const |
Return the last sample index. More... | |
std::size_t | get_first_step_index () const |
Return the first step index. More... | |
std::size_t | get_last_step_index () const |
Return the last step index. More... | |
bool | index_is_valid (const std::size_t sample_index_) const |
Check if a sample index is valid. More... | |
bool | value_is_valid (const double value_) const |
Check if a value is in the sampling domain. More... | |
bool | compute_step_bounds (const std::size_t step_index_, double &min_, double &max_) const |
Compute the bounds of step with given index. More... | |
Base class for all sampling models.
mygsl::base_sampling::base_sampling | ( | ) |
Default constructor.
|
virtual |
Destructor.
bool mygsl::base_sampling::compute_step_bounds | ( | const std::size_t | step_index_, |
double & | min_, | ||
double & | max_ | ||
) | const |
Compute the bounds of step with given index.
std::size_t mygsl::base_sampling::get_first_index | ( | ) | const |
Return the first sample index.
std::size_t mygsl::base_sampling::get_first_step_index | ( | ) | const |
Return the first step index.
std::size_t mygsl::base_sampling::get_last_index | ( | ) | const |
Return the last sample index.
std::size_t mygsl::base_sampling::get_last_step_index | ( | ) | const |
Return the last step index.
|
pure virtual |
Return the maximum sample.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Return the minimum sample.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Return the number of samples.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Return the number of steps.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
virtual |
Check if the checked value is associated to the given sample index.
bool mygsl::base_sampling::index_is_valid | ( | const std::size_t | sample_index_ | ) | const |
Check if a sample index is valid.
|
pure virtual |
Return the value associated to a given sample index.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Initialize from a set of properties.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Check the initialization status of the sampling.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
|
pure virtual |
Reset/invalidate the sampling.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
bool mygsl::base_sampling::value_is_valid | ( | const double | value_ | ) | const |
Check if a value is in the sampling domain.
|
pure virtual |
Return the left sample index and a classification associated to a value.
Implemented in mygsl::tabulated_sampling, and mygsl::linear_sampling.
bool mygsl::base_sampling::value_to_index | ( | const double | x_, |
std::size_t & | left_sample_index_ | ||
) | const |
Return the left sample index associated to a value.