File indexing completed on 2024-05-12 15:27:09
0001 /*************************************************************************** 0002 File : nsl_sf_kernel.h 0003 Project : LabPlot 0004 Description : NSL special kernel functions 0005 -------------------------------------------------------------------- 0006 Copyright : (C) 2016 by Stefan Gerlach (stefan.gerlach@uni.kn) 0007 0008 ***************************************************************************/ 0009 0010 /*************************************************************************** 0011 * * 0012 * This program is free software; you can redistribute it and/or modify * 0013 * it under the terms of the GNU General Public License as published by * 0014 * the Free Software Foundation; either version 2 of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 * This program is distributed in the hope that it will be useful, * 0018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0020 * GNU General Public License for more details. * 0021 * * 0022 * You should have received a copy of the GNU General Public License * 0023 * along with this program; if not, write to the Free Software * 0024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 0025 * Boston, MA 02110-1301 USA * 0026 * * 0027 ***************************************************************************/ 0028 0029 #ifndef NSL_SF_KERNEL_H 0030 #define NSL_SF_KERNEL_H 0031 0032 /* see https://en.wikipedia.org/wiki/Kernel_%28statistics%29 */ 0033 0034 /* kernel on [-1:1] */ 0035 /* uniform */ 0036 double nsl_sf_kernel_uniform(double u); 0037 /* triangular */ 0038 double nsl_sf_kernel_triangular(double u); 0039 /* parabolic (Epanechnikov) */ 0040 double nsl_sf_kernel_parabolic(double u); 0041 /* quartic (biweight) */ 0042 double nsl_sf_kernel_quartic(double u); 0043 /* triweight */ 0044 double nsl_sf_kernel_triweight(double u); 0045 /* tricube */ 0046 double nsl_sf_kernel_tricube(double u); 0047 /* cosine */ 0048 double nsl_sf_kernel_cosine(double u); 0049 /* semi circle */ 0050 double nsl_sf_kernel_semicircle(double u); 0051 0052 /* kernel on (-inf,inf) */ 0053 /* Gaussian */ 0054 double nsl_sf_kernel_gaussian(double u); 0055 /* Cauchy */ 0056 double nsl_sf_kernel_cauchy(double u); 0057 /* Logistic */ 0058 double nsl_sf_kernel_logistic(double u); 0059 /* Picard */ 0060 double nsl_sf_kernel_picard(double u); 0061 /* Sigmoid */ 0062 double nsl_sf_kernel_sigmoid(double u); 0063 /* Silverman */ 0064 double nsl_sf_kernel_silverman(double u); 0065 0066 #endif /* NSL_SF_KERNEL_H */