[Kst] kdeextragear-2/kst

Andrew Walker arwalker at sumusltd.com
Wed Apr 14 21:12:35 CEST 2004


CVS commit by arwalker: 

Added plugin for addition of Gaussian noise (of specified sigma) to a vector


  A            plugins/noise_addition/.cvsignore   1.1
  A            plugins/noise_addition/Makefile.am   1.1
  A            plugins/noise_addition/noise_addition.cpp   1.1 [UNKNOWN]
  A            plugins/noise_addition/noise_addition.xml   1.1
  M +4 -0      configure.in.in   1.18
  M +4 -1      plugins/Makefile.am   1.13


--- kdeextragear-2/kst/configure.in.in  #1.17:1.18
@@ -21,8 +21,11 @@
 GSL_LIBS="-lgsl -lgslcblas -lm"
 AC_SUBST(GSL_LIBS)
+GSL_NOISE_SUBDIR="gsl"
 GSL_FITS_SUBDIR="gsl"
 GSL_FITSNONLINEAR_SUBDIR="gsl"
 GSL_INTERPOLATIONS_SUBDIR="gsl"
 GSL_PASS_FILTERS_SUBDIR="gsl"
+KDE_CHECK_HEADER(gsl/gsl_rng.h, ,[GSL_NOISE_SUBDIR=""] )
+KDE_CHECK_LIB(gsl, gsl_rng_alloc, ,[GSL_NOISE_SUBDIR=""], -lgslcblas -lm )
 KDE_CHECK_HEADER(gsl/gsl_fit.h, ,[GSL_FITS_SUBDIR=""] )
 KDE_CHECK_LIB(gsl, gsl_fit_linear, ,[GSL_FITS_SUBDIR=""], -lgslcblas -lm )
@@ -33,4 +36,5 @@
 KDE_CHECK_HEADER(gsl/gsl_fft_real.h, ,[GSL_PASS_FILTERS_SUBDIR=""] )
 KDE_CHECK_LIB(gsl, gsl_fft_real_wavetable_alloc, ,[GSL_PASS_FILTERS_SUBDIR=""], -lgslcblas -lm )
+AM_CONDITIONAL(include_noise_plugins, test -n "$GSL_NOISE_SUBDIR")
 AM_CONDITIONAL(include_fits_plugins, test -n "$GSL_FITS_SUBDIR")
 AM_CONDITIONAL(include_fitsnonlinear_plugins, test -n "$GSL_FITSNONLINEAR_SUBDIR")

--- kdeextragear-2/kst/plugins/Makefile.am  #1.12:1.13
@@ -1,2 +1,5 @@
+if include_noise_plugins
+NOISE_SUBDIR=noise_addition
+endif
 if include_fits_plugins
 FITS_SUBDIR=fits
@@ -12,3 +15,3 @@
 endif
 
-SUBDIRS=linefit autocorrelation crosscorrelation periodogram phase statistics chop $(FITS_SUBDIR) $(FITSNONLINEAR_SUBDIR) $(INTERPOLATIONS_SUBDIR) $(PASS_FILTERS_SUBDIR) editor
+SUBDIRS=linefit autocorrelation crosscorrelation periodogram phase statistics chop $(NOISE_SUBDIR) $(FITS_SUBDIR) $(FITSNONLINEAR_SUBDIR) $(INTERPOLATIONS_SUBDIR) $(PASS_FILTERS_SUBDIR) editor





More information about the Kst mailing list