A Survey of Gaussian Convolution Algorithms
Data Structures | Macros | Functions
gaussian_bench.c File Reference

Benchmark for testing Gaussian convolution algorithms. More...

Detailed Description

Benchmark for testing Gaussian convolution algorithms.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.cmla..nosp@m.ens-.nosp@m.cacha.nosp@m.n.fr

Copyright (c) 2013, Pascal Getreuer All rights reserved.

This program is free software: you can redistribute it and/or modify it under, at your option, the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or the terms of the simplified BSD license.

You should have received a copy of these licenses along this program. If not, see http://www.gnu.org/licenses/ and http://www.opensource.org/licenses/bsd-license.html.

Definition in file gaussian_bench.c.

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "basic.h"
#include "strategy_gaussian_conv.h"
#include "filter_util.h"

Go to the source code of this file.

Data Structures

struct  program_params
 struct of program parameters More...
 

Macros

#define OUTPUT_FILE   "impulse.txt"
 Output file for impulse test.
 

Functions

void print_usage ()
 Print program usage help message.
 
int parse_params (program_params *param, int argc, char **argv)
 Parse command line arguments.
 
int speed_test (program_params p, num *output, num *input)
 
void make_impulse_signal (num *signal, long N, long n0)
 
int accuracy_test (program_params p, num *output, num *input)
 
int write_output (const char *filename, num *output, num *exact, long N)
 
int impulse_test (program_params p, num *output, num *input)
 
int main (int argc, char **argv)