#ifndef BOX_CAR_SMOOTH_06_10_2008 #define BOX_CAR_SMOOTH_06_10_2008 /** @file BoxCarSmooth.h @author Brian Magill @datecreated 6/10/2008 $Date:$ $Revision:$ @copyright (©) Copyright 2008 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 BoxCarSmooth { private: int smoothSize; public: BoxCarSmooth(int n = 0):smoothSize(n) { } BoxCarSmooth(BoxCarSmooth const& rhs): smoothSize(rhs.smoothSize) { } BoxCarSmooth& operator = (BoxCarSmooth const& rhs ) { if (this == &rhs) return *this; smoothSize = rhs.smoothSize; return *this; }; ~BoxCarSmooth() { } /// /// 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