681 |
11 Oct 06 |
jari |
1 |
#ifndef _theplu_yat_regression_kerneltricube_ |
681 |
11 Oct 06 |
jari |
2 |
#define _theplu_yat_regression_kerneltricube_ |
675 |
10 Oct 06 |
jari |
3 |
|
281 |
20 Apr 05 |
peter |
// $Id$ |
281 |
20 Apr 05 |
peter |
5 |
|
675 |
10 Oct 06 |
jari |
6 |
/* |
1746 |
23 Jan 09 |
peter |
Copyright (C) 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 |
281 |
20 Apr 05 |
peter |
11 |
|
1437 |
25 Aug 08 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
281 |
20 Apr 05 |
peter |
13 |
|
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. |
281 |
20 Apr 05 |
peter |
18 |
|
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. |
295 |
29 Apr 05 |
peter |
23 |
|
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 |
26 |
*/ |
675 |
10 Oct 06 |
jari |
27 |
|
680 |
11 Oct 06 |
jari |
28 |
#include "Kernel.h" |
675 |
10 Oct 06 |
jari |
29 |
|
281 |
20 Apr 05 |
peter |
30 |
namespace theplu { |
680 |
11 Oct 06 |
jari |
31 |
namespace yat { |
389 |
15 Aug 05 |
peter |
32 |
namespace regression { |
281 |
20 Apr 05 |
peter |
33 |
|
281 |
20 Apr 05 |
peter |
34 |
/// |
767 |
22 Feb 07 |
peter |
/// @brief Class for TriCubal kernel. |
281 |
20 Apr 05 |
peter |
36 |
/// |
295 |
29 Apr 05 |
peter |
37 |
class KernelTriCube : public Kernel |
281 |
20 Apr 05 |
peter |
38 |
{ |
4200 |
19 Aug 22 |
peter |
39 |
|
281 |
20 Apr 05 |
peter |
40 |
public: |
281 |
20 Apr 05 |
peter |
41 |
/// |
281 |
20 Apr 05 |
peter |
/// Constructor |
281 |
20 Apr 05 |
peter |
43 |
/// |
295 |
29 Apr 05 |
peter |
44 |
KernelTriCube() ; |
281 |
20 Apr 05 |
peter |
45 |
|
281 |
20 Apr 05 |
peter |
46 |
/// |
767 |
22 Feb 07 |
peter |
/// Operator calculating kernel value as \f$ w(x)=(1-|x|^3)^3\f$ if |
283 |
21 Apr 05 |
peter |
/// \f$|x|\le 1 \f$, \f$ w(x)=0 \f$ otherwise. |
281 |
20 Apr 05 |
peter |
49 |
/// |
767 |
22 Feb 07 |
peter |
50 |
double operator()(const double) const; |
4200 |
19 Aug 22 |
peter |
51 |
|
281 |
20 Apr 05 |
peter |
52 |
private: |
281 |
20 Apr 05 |
peter |
53 |
}; |
281 |
20 Apr 05 |
peter |
54 |
|
681 |
11 Oct 06 |
jari |
55 |
}}} // of namespaces regression, yat, and theplu |
281 |
20 Apr 05 |
peter |
56 |
|
281 |
20 Apr 05 |
peter |
57 |
#endif |