#ifndef GAIN_ALGORITHM_CLASS_11_21_2006 #define GAIN_ALGORITHM_CLASS_11_21_2006 /** @file GainAlgorithm.h @author Brian Magill @date 11/21/2006 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief Applies gain correction to difference channels */ #include "SigAlgoAbstract.h" #include class GainAlgorithm:public SigAlgoAbstract { private: std::vector gainArray; std::string processName; public: GainAlgorithm():gainArray(0), processName("Gain algo 1.0") { }; GainAlgorithm(std::vector const & gain): gainArray(gain), processName("Gain algo 1.0") { }; GainAlgorithm(GainAlgorithm const &rhs): gainArray(rhs.gainArray), processName(rhs.processName) { }; GainAlgorithm const & operator = (GainAlgorithm const &rhs); ~GainAlgorithm() { }; void applyCorrection(std::valarray const &time, ChannelSignals const & inChannel, ChannelSignals & outChannel, std::string & comments) const; std::string getName() const {return processName; }; void dump() const; }; #endif