[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] [Patch 3/4] Introduce continuous wavelet transform
From: |
Kevin Bube |
Subject: |
[Bug-gsl] [Patch 3/4] Introduce continuous wavelet transform |
Date: |
Fri, 29 Apr 2005 18:38:34 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
This patch provides the header files for the CWT.
--- /dev/null 2004-04-06 15:27:52.000000000 +0200
+++ gsl-1.6/wavelet/gsl_cwt.h 2005-04-29 17:24:42.000000000 +0200
@@ -0,0 +1,92 @@
+/* wavelet/gsl_cwt.h
+ *
+ * Copyright (C) 2005 Kevin Bube
+ *
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __GSL_CWT_H__
+#define __GSL_CWT_H__
+#include <gsl/gsl_types.h>
+#include <gsl/gsl_errno.h>
+#include <gsl/gsl_fft_complex.h>
+
+#undef __BEGIN_DECLS
+#undef __END_DECLS
+#ifdef __cplusplus
+# define __BEGIN_DECLS extern "C" {
+# define __END_DECLS }
+#else
+# define __BEGIN_DECLS /* empty */
+# define __END_DECLS /* empty */
+#endif
+
+__BEGIN_DECLS
+
+typedef enum {
+ gsl_cwt_forward = 1, gsl_cwt_backward = -1
+}
+gsl_cwt_direction;
+
+typedef struct
+{
+ const char *name;
+ gsl_complex (*function) (double scale, double frequency, double *parms);
+}
+gsl_cwt_type;
+
+typedef struct
+{
+ const gsl_cwt_type *type;
+ double scale;
+ double *parms;
+}
+gsl_cwt_wavelet;
+
+typedef struct
+{
+ gsl_fft_complex_wavetable *wavetable;
+ gsl_fft_complex_workspace *workspace;
+ double *packed;
+ size_t n;
+}
+gsl_cwt_workspace;
+
+/* wavelets */
+GSL_VAR const gsl_cwt_type *gsl_cwt_dog; /* derivative of gaussian */
+GSL_VAR const gsl_cwt_type *gsl_cwt_morlet; /* Morlet wavelet */
+GSL_VAR const gsl_cwt_type *gsl_cwt_paul; /* Paul wavelet */
+
+/* extern const char *gsl_cwt_name (const gsl_cwavelet * w); */
+
+extern gsl_cwt_workspace *gsl_cwt_workspace_alloc (size_t n);
+extern void gsl_cwt_workspace_free (gsl_cwt_workspace * work);
+
+extern int gsl_cwt_transform (const gsl_cwt_wavelet *wlet,
+ double *data, double *imag,
+ size_t stride, size_t n,
+ gsl_cwt_direction dir,
+ gsl_cwt_workspace *w);
+
+extern int gsl_cwt_transform_forward (const gsl_cwt_wavelet *wlet,
+ double *data, double *imag,
+ size_t stride, size_t n,
+ gsl_cwt_workspace *w);
+
+__END_DECLS
+
+#endif /* __GSL_WAVELET_H__ */
+
+
pgpLXSvD4IxUx.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gsl] [Patch 3/4] Introduce continuous wavelet transform,
Kevin Bube <=