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.
21 #include <gsl/gsl_errno.h>
22 #include <gsl/gsl_math.h>
23 #include <gsl/gsl_wavelet.h>
25 static const double ch_2[2] = { M_SQRT1_2, M_SQRT1_2 };
26 static const double cg_2[2] = { M_SQRT1_2, -(M_SQRT1_2) };
29 haar_init (const double **h1, const double **g1, const double **h2,
30 const double **g2, size_t * nc, size_t * offset,
50 haar_centered_init (const double **h1, const double **g1, const double **h2,
51 const double **g2, size_t * nc, size_t * offset,
70 static const gsl_wavelet_type haar_type = {
75 static const gsl_wavelet_type haar_centered_type = {
80 const gsl_wavelet_type *gsl_wavelet_haar = &haar_type;
81 const gsl_wavelet_type *gsl_wavelet_haar_centered = &haar_centered_type;