21 #ifndef MYGSL_TABULATED_SAMPLING_H 22 #define MYGSL_TABULATED_SAMPLING_H 82 double & value_)
const;
88 void append(
const double value_);
98 void make_ordered(
const std::vector<double> & values_,
const double guard_ = 0.0);
105 void _set_guard_(
double guard_);
107 void _check_guard_();
116 bool _initialized_ =
false;
119 std::vector<double> _table_;
130 #endif // MYGSL_BASE_SAMPLING_H virtual void initialize(const datatools::properties &)
Reset/invalidate the sampling.
Base class for all sampling models.
Definition: base_sampling.h:34
virtual bool is_initialized() const
Check the initialization status of the sampling.
void make_ordered(const std::vector< double > &values_, const double guard_=0.0)
std::size_t get_nsamples() const
Return the number of nsamples.
double get_max_step() const
Return the maximum step.
virtual void reset()
Reset/invalidate the sampling.
double get_guard() const
Return the absolute guard distance around sampling alues.
Tabulated sampling model.
Definition: tabulated_sampling.h:33
void set_guard(const double guard_)
Set the absolute guard distance around sampling alues.
index_classification_type
Definition: sampling_utils.h:53
tabulated_sampling()
Default constructor.
virtual double get_max() const
Return the maximum sample.
double get_min_step() const
Return the minimum step.
virtual double get_min() const
Return the minimum sample.
std::size_t get_nsteps() const
Return the number of steps.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
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.
virtual ~tabulated_sampling()
Destructor.
void lock()
Lock the sampling table.
virtual sampling::index_classification_type index_to_value(const std::size_t index_, double &value_) const
Return the value associated to a given index.
void append(const double value_)
Add a tabulated value.