source: trunk/lib/statistics/KernelTriCube.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 Id
File size: 402 bytes
Line 
1// $Id: KernelTriCube.cc 295 2005-04-29 09:15:58Z peter $
2
3#include <c++_tools/statistics/KernelTriCube.h>
4#include <c++_tools/statistics/Kernel.h>
5
6#include <cmath>
7
8namespace theplu {
9namespace statistics {
10
11  KernelTriCube::KernelTriCube(void)
12    : Kernel()
13  {
14  }
15
16  double KernelTriCube::weight(const double x) const
17  {
18    if (x>1 || x<-1)
19      return 0.0;
20    else
21      return pow(1-pow(fabs(x),3),3);
22  }
23
24}} // of namespace statistics and namespace theplu
Note: See TracBrowser for help on using the repository browser.