source: trunk/yat/regression/KernelBox.h @ 1486

Last change on this file since 1486 was 1486, checked in by Jari Häkkinen, 13 years ago

Addresses #436.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
RevLine 
[681]1#ifndef _theplu_yat_regression_kernelbox_
2#define _theplu_yat_regression_kernelbox_
[675]3
[216]4// $Id: KernelBox.h 1486 2008-09-09 21:17:19Z jari $
5
[675]6/*
[831]7  Copyright (C) 2004 Peter Johansson
8  Copyright (C) 2005 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2006 Jari Häkkinen
[1275]10  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
[216]11
[1437]12  This file is part of the yat library, http://dev.thep.lu.se/yat
[216]13
[675]14  The yat library is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License as
[1486]16  published by the Free Software Foundation; either version 3 of the
[675]17  License, or (at your option) any later version.
[216]18
[675]19  The yat library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  General Public License for more details.
23
24  You should have received a copy of the GNU General Public License
25  along with this program; if not, write to the Free Software
26  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27  02111-1307, USA.
28*/
29
[680]30#include "Kernel.h"
[675]31
[216]32namespace theplu {
[680]33namespace yat {
[681]34namespace regression {
[216]35
36  ///
[767]37  /// @brief Class for KernelBox a.k.a. rectangular window.
[216]38  ///
[297]39  class KernelBox : public Kernel
[216]40  {
41   
42  public:
43    ///
44    /// Constructor
45    ///
[443]46    KernelBox(void);
[216]47
48    ///
[767]49    /// Function calculating kernel value as \f$ w(x)=1\f$ if \f$|x|\le 1
[221]50    /// \f$, \f$ w(x)=0 \f$ otherwise.
[216]51    ///
[767]52    double operator()(const double) const;
[216]53 
54  private:
55  };
56
[681]57}}} // of namespaces regression, yat, and theplu
[216]58
59#endif
Note: See TracBrowser for help on using the repository browser.