1 /* wavelet/gsl_wavelet.h
3 * Copyright (C) 2004 Ivo Alxneit
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __GSL_WAVELET_H__
21 #define __GSL_WAVELET_H__
23 #include <gsl/gsl_types.h>
24 #include <gsl/gsl_errno.h>
29 # define __BEGIN_DECLS extern "C" {
30 # define __END_DECLS }
32 # define __BEGIN_DECLS /* empty */
33 # define __END_DECLS /* empty */
38 #ifndef GSL_DISABLE_DEPRECATED
40 forward = 1, backward = -1,
41 gsl_wavelet_forward = 1, gsl_wavelet_backward = -1
43 gsl_wavelet_direction;
46 gsl_wavelet_forward = 1, gsl_wavelet_backward = -1
48 gsl_wavelet_direction;
54 int (*init) (const double **h1, const double **g1,
55 const double **h2, const double **g2, size_t * nc,
56 size_t * offset, size_t member);
62 const gsl_wavelet_type *type;
77 gsl_wavelet_workspace;
79 GSL_VAR const gsl_wavelet_type *gsl_wavelet_daubechies;
80 GSL_VAR const gsl_wavelet_type *gsl_wavelet_daubechies_centered;
81 GSL_VAR const gsl_wavelet_type *gsl_wavelet_haar;
82 GSL_VAR const gsl_wavelet_type *gsl_wavelet_haar_centered;
83 GSL_VAR const gsl_wavelet_type *gsl_wavelet_bspline;
84 GSL_VAR const gsl_wavelet_type *gsl_wavelet_bspline_centered;
86 gsl_wavelet *gsl_wavelet_alloc (const gsl_wavelet_type * T, size_t k);
87 void gsl_wavelet_free (gsl_wavelet * w);
88 const char *gsl_wavelet_name (const gsl_wavelet * w);
90 gsl_wavelet_workspace *gsl_wavelet_workspace_alloc (size_t n);
91 void gsl_wavelet_workspace_free (gsl_wavelet_workspace * work);
93 int gsl_wavelet_transform (const gsl_wavelet * w,
94 double *data, size_t stride, size_t n,
95 gsl_wavelet_direction dir,
96 gsl_wavelet_workspace * work);
98 int gsl_wavelet_transform_forward (const gsl_wavelet * w,
99 double *data, size_t stride, size_t n,
100 gsl_wavelet_workspace * work);
102 int gsl_wavelet_transform_inverse (const gsl_wavelet * w,
103 double *data, size_t stride, size_t n,
104 gsl_wavelet_workspace * work);
108 #endif /* __GSL_WAVELET_H__ */