yat/regression/KernelBox.h

Code
Comments
Other
Rev Date Author Line
681 11 Oct 06 jari 1 #ifndef _theplu_yat_regression_kernelbox_
681 11 Oct 06 jari 2 #define _theplu_yat_regression_kernelbox_
675 10 Oct 06 jari 3
216 29 Dec 04 peter 4 // $Id$
216 29 Dec 04 peter 5
675 10 Oct 06 jari 6 /*
831 27 Mar 07 peter 7   Copyright (C) 2004 Peter Johansson
2119 12 Dec 09 peter 8   Copyright (C) 2005 Jari Häkkinen, Peter Johansson
2119 12 Dec 09 peter 9   Copyright (C) 2006 Jari Häkkinen
4359 23 Aug 23 peter 10   Copyright (C) 2007 Peter Johansson
4359 23 Aug 23 peter 11   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
3188 25 Mar 14 peter 12   Copyright (C) 2014 Peter Johansson
216 29 Dec 04 peter 13
1437 25 Aug 08 peter 14   This file is part of the yat library, http://dev.thep.lu.se/yat
216 29 Dec 04 peter 15
675 10 Oct 06 jari 16   The yat library is free software; you can redistribute it and/or
675 10 Oct 06 jari 17   modify it under the terms of the GNU General Public License as
1486 09 Sep 08 jari 18   published by the Free Software Foundation; either version 3 of the
675 10 Oct 06 jari 19   License, or (at your option) any later version.
216 29 Dec 04 peter 20
675 10 Oct 06 jari 21   The yat library is distributed in the hope that it will be useful,
675 10 Oct 06 jari 22   but WITHOUT ANY WARRANTY; without even the implied warranty of
675 10 Oct 06 jari 23   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
675 10 Oct 06 jari 24   General Public License for more details.
675 10 Oct 06 jari 25
675 10 Oct 06 jari 26   You should have received a copy of the GNU General Public License
1487 10 Sep 08 jari 27   along with yat. If not, see <http://www.gnu.org/licenses/>.
675 10 Oct 06 jari 28 */
675 10 Oct 06 jari 29
680 11 Oct 06 jari 30 #include "Kernel.h"
675 10 Oct 06 jari 31
216 29 Dec 04 peter 32 namespace theplu {
680 11 Oct 06 jari 33 namespace yat {
681 11 Oct 06 jari 34 namespace regression {
216 29 Dec 04 peter 35
216 29 Dec 04 peter 36   ///
767 22 Feb 07 peter 37   /// @brief Class for KernelBox a.k.a. rectangular window.
216 29 Dec 04 peter 38   ///
297 29 Apr 05 peter 39   class KernelBox : public Kernel
216 29 Dec 04 peter 40   {
216 29 Dec 04 peter 41   public:
216 29 Dec 04 peter 42     ///
216 29 Dec 04 peter 43     /// Constructor
216 29 Dec 04 peter 44     ///
443 15 Dec 05 jari 45     KernelBox(void);
216 29 Dec 04 peter 46
3188 25 Mar 14 peter 47     /**
3188 25 Mar 14 peter 48        Function calculating kernel value as \f$ w(x)=1\f$ if \f$|x|\le 1
3188 25 Mar 14 peter 49        \f$, \f$ w(x)=0 \f$ otherwise.
3188 25 Mar 14 peter 50     */
767 22 Feb 07 peter 51     double operator()(const double) const;
3188 25 Mar 14 peter 52
216 29 Dec 04 peter 53   private:
216 29 Dec 04 peter 54   };
216 29 Dec 04 peter 55
681 11 Oct 06 jari 56 }}} // of namespaces regression, yat, and theplu
216 29 Dec 04 peter 57
216 29 Dec 04 peter 58 #endif