diff --git a/src/backend/nsl/Makefile b/src/backend/nsl/Makefile index 76538c6c7..d1c33eac6 100644 --- a/src/backend/nsl/Makefile +++ b/src/backend/nsl/Makefile @@ -1,30 +1,28 @@ -all: nsl_stats_test nsl_smooth_ma_test nsl_smooth_mal_test nsl_smooth_percentile_test nsl_smooth_savgol_test nsl_sf_window_test nsl_filter_test nsl_filter_test_fftw nsl_geom_linesim_test nsl_geom_linesim_morse_test nsl_int_test nsl_fit_test +all: nsl_stats_test nsl_smooth_ma_test nsl_smooth_mal_test nsl_smooth_percentile_test nsl_smooth_savgol_test nsl_filter_test nsl_filter_test_fftw nsl_geom_linesim_test nsl_geom_linesim_morse_test nsl_int_test nsl_fit_test nsl_stats_test: nsl_stats_test.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_smooth_ma_test: nsl_smooth_ma_test.c nsl_smooth.c nsl_sf_kernel.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_smooth_mal_test: nsl_smooth_mal_test.c nsl_smooth.c nsl_sf_kernel.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_smooth_percentile_test: nsl_smooth_percentile_test.c nsl_smooth.c nsl_sf_kernel.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_smooth_savgol_test: nsl_smooth_savgol_test.c nsl_smooth.c nsl_sf_kernel.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas -nsl_sf_window_test: nsl_sf_window_test.c nsl_sf_window.c - gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_filter_test: nsl_filter_test.c nsl_filter.c nsl_sf_poly.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_filter_test_fftw: nsl_filter_test.c nsl_filter.c nsl_sf_poly.c gcc -o $@ $^ -lm -DHAVE_FFTW3 -lfftw3 -lgsl -lgslcblas nsl_geom_linesim_test: nsl_geom_linesim_test.c nsl_geom_linesim.c nsl_geom.c nsl_sort.c nsl_stats.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_geom_linesim_morse_test: nsl_geom_linesim_morse_test.c nsl_geom_linesim.c nsl_geom.c nsl_sort.c nsl_stats.c gcc -O2 -o $@ $^ -lm -lgsl -lgslcblas nsl_int_test: nsl_int_test.c nsl_int.c nsl_sf_poly.c gcc -o $@ $^ -lm -lgsl -lgslcblas nsl_fit_test: nsl_fit_test.c nsl_fit.c nsl_sf_basic.c Faddeeva.c gcc -o $@ $^ -lm -lgsl -lgslcblas clean: - rm -f nsl_stats_test nsl_smooth_ma_test nsl_smooth_mal_test nsl_smooth_percentile_test nsl_smooth_savgol_test nsl_dft_test nsl_dft_test_fftw nsl_sf_window_test nsl_filter_test nsl_filter_test_fftw nsl_geom_linesim_test nsl_geom_linesim_morse_test nsl_diff_test nsl_int_test nsl_fit_test + rm -f nsl_stats_test nsl_smooth_ma_test nsl_smooth_mal_test nsl_smooth_percentile_test nsl_smooth_savgol_test nsl_dft_test nsl_dft_test_fftw nsl_filter_test nsl_filter_test_fftw nsl_geom_linesim_test nsl_geom_linesim_morse_test nsl_diff_test nsl_int_test nsl_fit_test diff --git a/src/backend/nsl/nsl_sf_window_test.c b/src/backend/nsl/nsl_sf_window_test.c deleted file mode 100644 index 364d8dc00..000000000 --- a/src/backend/nsl/nsl_sf_window_test.c +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - File : nsl_sf_window_test.c - Project : LabPlot - Description : NSL window functions test - -------------------------------------------------------------------- - Copyright : (C) 2016 by Stefan Gerlach (stefan.gerlach@uni.kn) - - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the Free Software * - * Foundation, Inc., 51 Franklin Street, Fifth Floor, * - * Boston, MA 02110-1301 USA * - * * - ***************************************************************************/ - -#include -#include "nsl_sf_window.h" - -int main() { - const int N = 10; - double data[] = {1,1,1,1,1,1,1,1,1,1}; - - int i; - nsl_sf_window_type t; - - for (t = nsl_sf_window_uniform; t <= nsl_sf_window_lanczos; t++) { - nsl_sf_apply_window(data, N, t); - for(i = 0; i < N; i++) - printf("%.15g ", data[i]); - puts("\n"); - } -}