#ifndef SMOOTH_REFRACTION_11_01_2007 #define SMOOTH_REFRACTION_11_01_2007 /** @file SmoothRefrac.h @author Brian Magill @datecreated 11/01/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: Smooths a signal with a box car average */ //---------------------------------------------------------------------- // #include class SmoothRefrac { private: int smoothSize; public: SmoothRefrac(int n = 0):smoothSize(n) { } SmoothRefrac(SmoothRefrac const& rhs): smoothSize(rhs.smoothSize) { } SmoothRefrac& operator = (SmoothRefrac const& rhs ) { if (this == &rhs) return *this; smoothSize = rhs.smoothSize; return *this; }; ~SmoothRefrac() { } /// /// Smooths values over an 2*n interval (leaves end areas alone /// /// @param signal - signal to be smoothed /// void operator()(std::valarray const &inSignal, std::valarray &outSignal); }; #endif