home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / kernels.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-10  |  2.2 KB  |  65 lines

  1. //===================================================================
  2. // kernels.h
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _KERNELS_H_
  18. #define _KERNELS_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT double biweight(double x);
  25. //-------------------------------------------------------------------
  26. // Returns the value of the Biweight kernel at the point x.
  27. //-------------------------------------------------------------------
  28.  
  29. NUMERICS_EXPORT double cosine(double x);
  30. //-------------------------------------------------------------------
  31. // Returns the value of the Cosine kernel at the point x.
  32. //-------------------------------------------------------------------
  33.  
  34. NUMERICS_EXPORT double epanech(double x);
  35. //-------------------------------------------------------------------
  36. // Returns the value of the Epanechnikov kernel at the point x.
  37. //-------------------------------------------------------------------
  38.  
  39. NUMERICS_EXPORT double gaussian(double x);
  40. //-------------------------------------------------------------------
  41. // Returns the value of the Gaussian kernel at the point x.
  42. //-------------------------------------------------------------------
  43.  
  44. NUMERICS_EXPORT double rectangle(double x);
  45. //-------------------------------------------------------------------
  46. // Returns the value of the Rectangular kernel at the point x.
  47. //-------------------------------------------------------------------
  48.  
  49. NUMERICS_EXPORT double triangle(double x);
  50. //-------------------------------------------------------------------
  51. // Returns the value of the Triangular kernel at the point x.
  52. //-------------------------------------------------------------------
  53.  
  54. NUM_END
  55.  
  56. #endif
  57.  
  58. //===================================================================
  59. // Revision History
  60. //
  61. // Version 1.0 - 08/28/1998 - New.
  62. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  63. //===================================================================
  64.  
  65.