216 |
29 Dec 04 |
peter |
// $Id$ |
216 |
29 Dec 04 |
peter |
2 |
|
675 |
10 Oct 06 |
jari |
3 |
/* |
831 |
27 Mar 07 |
peter |
Copyright (C) 2004, 2005 Peter Johansson |
2119 |
12 Dec 09 |
peter |
Copyright (C) 2006 Jari Häkkinen |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2007 Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
2919 |
19 Dec 12 |
peter |
Copyright (C) 2012 Peter Johansson |
216 |
29 Dec 04 |
peter |
9 |
|
1437 |
25 Aug 08 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
675 |
10 Oct 06 |
jari |
11 |
|
675 |
10 Oct 06 |
jari |
The yat library is free software; you can redistribute it and/or |
675 |
10 Oct 06 |
jari |
modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
published by the Free Software Foundation; either version 3 of the |
675 |
10 Oct 06 |
jari |
License, or (at your option) any later version. |
675 |
10 Oct 06 |
jari |
16 |
|
675 |
10 Oct 06 |
jari |
The yat library is distributed in the hope that it will be useful, |
675 |
10 Oct 06 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
675 |
10 Oct 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
675 |
10 Oct 06 |
jari |
General Public License for more details. |
675 |
10 Oct 06 |
jari |
21 |
|
675 |
10 Oct 06 |
jari |
You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
675 |
10 Oct 06 |
jari |
24 |
*/ |
675 |
10 Oct 06 |
jari |
25 |
|
2881 |
18 Nov 12 |
peter |
26 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
27 |
|
680 |
11 Oct 06 |
jari |
28 |
#include "KernelBox.h" |
675 |
10 Oct 06 |
jari |
29 |
|
216 |
29 Dec 04 |
peter |
30 |
namespace theplu { |
680 |
11 Oct 06 |
jari |
31 |
namespace yat { |
389 |
15 Aug 05 |
peter |
32 |
namespace regression { |
680 |
11 Oct 06 |
jari |
33 |
|
295 |
29 Apr 05 |
peter |
34 |
KernelBox::KernelBox(void) |
295 |
29 Apr 05 |
peter |
35 |
: Kernel() |
216 |
29 Dec 04 |
peter |
36 |
{ |
216 |
29 Dec 04 |
peter |
37 |
} |
216 |
29 Dec 04 |
peter |
38 |
|
767 |
22 Feb 07 |
peter |
39 |
double KernelBox::operator()(const double u) const |
216 |
29 Dec 04 |
peter |
40 |
{ |
216 |
29 Dec 04 |
peter |
41 |
if (u>1 || u<-1) |
216 |
29 Dec 04 |
peter |
42 |
return 0.0; |
216 |
29 Dec 04 |
peter |
43 |
else |
216 |
29 Dec 04 |
peter |
44 |
return 1.0; |
216 |
29 Dec 04 |
peter |
45 |
} |
216 |
29 Dec 04 |
peter |
46 |
|
681 |
11 Oct 06 |
jari |
47 |
}}} // of namespaces regression, yat, and theplu |