#ifndef CALCULATE_DARK_DIFFERENCE_VALUE_4_19_2007 #define CALCULATE_DARK_DIFFERENCE_VALUE_4_19_2007 /** @class CalcDarkDiff.h @author Brian Magill @creation date 4/19/2007 $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 Calculates the dark signal for the difference signal Note: this is a stopgap measure for calculating the dark signal offset of the difference signal. For the moment it uses the index location of the dark signal value for the strong signal to determine where this offset is. Eventually a more robust method will be developed. */ #include class CalcDarkDiff { public: CalcDarkDiff() { }; // CalcDarkDiff(CalcDarkDiff const &rhs):sunsetMode(rhs.sunsetMode) { }; // // CalcDarkDiff const & operator =(CalcDarkDiff const &rhs) // { // if(this == &rhs) // return *this; // // sunsetMode = rhs.sunsetMode; // // return *this; // }; ~CalcDarkDiff() { }; double operator()(std::valarray const &strongSig, std::valarray const &diffSig) const; double timeAtMin(std::valarray const &strongSig, std::valarray const &time) const; }; #endif