source: trunk/lib/statistics/KernelBox.cc @ 389

Last change on this file since 389 was 389, checked in by Peter, 18 years ago

moved kernel to regression namespace and tried to fix some dox issues

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 403 bytes
Line 
1// $Id: KernelBox.cc 389 2005-08-15 11:37:07Z peter $
2
3#include <c++_tools/statistics/KernelBox.h>
4#include <c++_tools/statistics/Kernel.h>
5
6namespace theplu {
7namespace statistics {
8namespace regression {
9  KernelBox::KernelBox(void)
10    : Kernel()
11  {
12  }
13
14  double KernelBox::weight(const double u) const
15  {
16    if (u>1 || u<-1)
17      return 0.0;
18    else
19      return 1.0;
20  }
21
22} // of namespace regression
23} // of namespace statistics
24} // of namespace theplu
25
Note: See TracBrowser for help on using the repository browser.