#ifndef DETERMINE_DIFFERENCE_DRIFT_CORRECTION_05_03_2007 #define DETERMINE_DIFFERENCE_DRIFT_CORRECTION_05_03_2007 /** @class DetermDiffDrift.h @author Brian Magill @creationdate 5/3/2007 @brief Determines drift correction for difference signals The drift of difference signals is assumed to be additive */ #include "DetermDriftAbstract.h" #include // class DetermDiffDrift: public DetermDriftAbstract class DetermDiffDrift: public DetermDriftAbstract { private: bool hasData; double slope; double slopeError; double tref; double Vref; public: DetermDiffDrift():hasData(false), slope(0), slopeError(0), tref(0), Vref(0) { }; DetermDiffDrift(std::valarray const &time, std::valarray const &signal); ~DetermDiffDrift() { }; DetermDiffDrift(DetermDiffDrift const& rhs):hasData(rhs.hasData), slope(rhs.slope), slopeError(rhs.slopeError), tref(rhs.tref), Vref(rhs.Vref) { }; DetermDiffDrift const& operator = (DetermDiffDrift const& rhs) { if (this == &rhs) return *this; hasData = rhs.hasData; slope = rhs.slope; slopeError = rhs.slopeError; tref = rhs.tref; Vref = rhs.Vref; return *this; }; bool containsData() const {return hasData; }; double getSlope() const {return slope;} ; double getSlopeError() const {return slopeError;}; double getTimeRef() const {return tref;}; double getVref() const {return Vref;}; }; #endif