diff --git a/Device/Data/Datafield.cpp b/Device/Data/Datafield.cpp index b7eb20d2fafbca575903aaabb21624c4c0dbec16..e2ddec6ee0291adc4057cc60a849e3749af7c3e7 100644 --- a/Device/Data/Datafield.cpp +++ b/Device/Data/Datafield.cpp @@ -75,6 +75,16 @@ double Datafield::valAt(size_t i) const return m_values[i]; } +bool Datafield::hasErrorSigmas() +{ + return m_errSigmas.size()>0; +} + +double Datafield::errorSigmaAt(size_t i) const +{ + return m_errSigmas[i]; +} + void Datafield::setAllTo(const double& value) { for (double& v : m_values) diff --git a/Device/Data/Datafield.h b/Device/Data/Datafield.h index e89f709843861fe3ae1f0b60b9050c8129cfa3be..e7d782922906e72dd0a11449d359fb9eff8e81a0 100644 --- a/Device/Data/Datafield.h +++ b/Device/Data/Datafield.h @@ -50,9 +50,11 @@ public: Datafield* clone() const; void setAt(size_t i, double val); - double valAt(size_t i) const; + bool hasErrorSigmas(); + double errorSigmaAt(size_t i) const; + // retrieve basic info const Frame& frame() const;