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

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

file structure modifications. NOTE, this revision is not working, please wait for the next...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 348 bytes
Line 
1// $Id: KernelBox.cc 295 2005-04-29 09:15:58Z peter $
2
3#include <c++_tools/statistics/KernelBox.h>
4#include <c++_tools/statistics/Kernel.h>
5
6namespace theplu {
7namespace statistics {
8
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 statistics and namespace theplu
Note: See TracBrowser for help on using the repository browser.