Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Tabulated sampling model. More...
#include <bayeux/mygsl/tabulated_sampling.h>
Public Member Functions | |
tabulated_sampling () | |
Default constructor. More... | |
virtual | ~tabulated_sampling () |
Destructor. More... | |
virtual double | get_min () const |
Return the minimum sample. More... | |
virtual double | get_max () const |
Return the maximum sample. More... | |
std::size_t | get_nsteps () const |
Return the number of steps. More... | |
std::size_t | get_nsamples () const |
Return the number of nsamples. More... | |
double | get_guard () const |
Return the absolute guard distance around sampling alues. More... | |
double | get_min_step () const |
Return the minimum step. More... | |
double | get_max_step () const |
Return the maximum step. More... | |
virtual bool | is_initialized () const |
Check the initialization status of the sampling. More... | |
virtual void | initialize (const datatools::properties &) |
Reset/invalidate the sampling. More... | |
virtual void | reset () |
Reset/invalidate the sampling. More... | |
virtual bool | value_to_index (const double x_, std::size_t &index_, sampling::index_classification_type &classification_flags_) const |
Return the index and a classification associated to a value. More... | |
virtual sampling::index_classification_type | index_to_value (const std::size_t index_, double &value_) const |
Return the value associated to a given index. More... | |
void | set_guard (const double guard_) |
Set the absolute guard distance around sampling alues. More... | |
void | append (const double value_) |
Add a tabulated value. More... | |
void | make_ordered (const std::vector< double > &values_, const double guard_=0.0) |
void | lock () |
Lock the sampling table. More... | |
Public Member Functions inherited from mygsl::base_sampling | |
base_sampling () | |
Default constructor. More... | |
virtual | ~base_sampling () |
Destructor. 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 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... | |
Tabulated sampling model.
mygsl::tabulated_sampling::tabulated_sampling | ( | ) |
Default constructor.
|
virtual |
Destructor.
void mygsl::tabulated_sampling::append | ( | const double | value_ | ) |
Add a tabulated value.
double mygsl::tabulated_sampling::get_guard | ( | ) | const |
Return the absolute guard distance around sampling alues.
|
virtual |
Return the maximum sample.
Implements mygsl::base_sampling.
double mygsl::tabulated_sampling::get_max_step | ( | ) | const |
Return the maximum step.
|
virtual |
Return the minimum sample.
Implements mygsl::base_sampling.
double mygsl::tabulated_sampling::get_min_step | ( | ) | const |
Return the minimum step.
|
virtual |
Return the number of nsamples.
Implements mygsl::base_sampling.
|
virtual |
Return the number of steps.
Implements mygsl::base_sampling.
|
virtual |
Return the value associated to a given index.
Implements mygsl::base_sampling.
|
virtual |
Reset/invalidate the sampling.
Implements mygsl::base_sampling.
|
virtual |
Check the initialization status of the sampling.
Implements mygsl::base_sampling.
void mygsl::tabulated_sampling::lock | ( | ) |
Lock the sampling table.
void mygsl::tabulated_sampling::make_ordered | ( | const std::vector< double > & | values_, |
const double | guard_ = 0.0 |
||
) |
Build sampling from a ordered list of values
|
virtual |
Reset/invalidate the sampling.
Implements mygsl::base_sampling.
void mygsl::tabulated_sampling::set_guard | ( | const double | guard_ | ) |
Set the absolute guard distance around sampling alues.
|
virtual |
Return the index and a classification associated to a value.
Implements mygsl::base_sampling.