21 #ifndef MYGSL_LINEAR_SAMPLING_H 22 #define MYGSL_LINEAR_SAMPLING_H 87 const std::size_t nsteps_,
88 const double guard_ = 0.0);
100 const std::size_t nsteps_,
102 const double guard_ = 0.0);
116 const std::size_t nsteps_,
118 const double guard_ = 0.0);
122 void _set_guard_(
double guard_);
132 std::size_t _nsteps_;
140 #endif // MYGSL_BASE_SAMPLING_H virtual bool is_initialized() const
Check the initialization status of the sampling.
void make_from_min(const double min_, const std::size_t nsteps_, const double step_, const double guard_=0.0)
Base class for all sampling models.
Definition: base_sampling.h:34
virtual void reset()
Reset/invalidate the sampling.
void make_range(const double min_, const double max_, const std::size_t nsteps_, const double guard_=0.0)
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.
std::size_t get_nsamples() const
Return the number of nsamples.
void make_to_max(const double max_, const std::size_t nsteps_, const double step_, const double guard_=0.0)
index_classification_type
Definition: sampling_utils.h:53
double get_step() const
Return the step.
double get_guard() const
Return the absolute guard distance around sampling values.
std::size_t get_nsteps() const
Return the number of steps.
virtual double get_min() const
Return the minimum sample.
virtual ~linear_sampling()
Destructor.
linear_sampling()
Default constructor.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
virtual sampling::index_classification_type index_to_value(const std::size_t index_, double &value_) const
Return the value associated to a given index.
Linear sampling model.
Definition: linear_sampling.h:30
virtual void initialize(const datatools::properties &)
Reset/invalidate the sampling.
virtual double get_max() const
Return the maximum sample.