/** @class TranslateFilterTemp.cpp @author Brian Magill @date 3/21/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 Translates a list of temperatures to the corresponding filter temperature values. */ #include "TranslateFilterTemp.h" using namespace std; EventVar TranslateFilterTemp::operator()(std::string const &name) const { // workVar.resize(signalsOut(0).size()); EventVar workVar(tempVect->operator()(0).size() ); EventVar resultVar(name, transIndex.size()); //transIndex unsigned long i; for(i = 0; i < transIndex.size(); i++) { workVar = tempVect->operator()(transIndex[i]); resultVar[i] = workVar.sum()/workVar.size(); } return resultVar; }