3 #ifndef MYGSL_DATAPOINT_H 4 #define MYGSL_DATAPOINT_H 1 31 double sigma_y_ = std::numeric_limits<double>::quiet_NaN());
37 const double &
x()
const;
40 const double &
y()
const;
71 #endif // MYGSL_DATAPOINT_H
bool is_weighted() const
Check if the datapoints in weighted with the error on the Y coordinate.
friend std::istream & operator>>(std::istream &, datapoint &)
virtual ~datapoint()
Destructor.
#define DATATOOLS_SERIALIZATION_DECLARATION()
Definition: i_serializable.h:266
datapoint()
Default constructor.
const double & x() const
Return the X coordinate.
bool has_sigma_y() const
Check if the error on the Y coordinate is provided.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
const double & y() const
Return the Y coordinate.
A serializable (x,y,sigma(y)) triplet.
Definition: datapoint.h:20
static bool comp_by_x(const datapoint &p1_, const datapoint &p2_)
Compare two datapoint using their X coordinate.
friend std::ostream & operator<<(std::ostream &, const datapoint &)
const double & sigma_y() const
Return the error on the Y coordinate.