|
TPCCLIB
|
Linear convolution for discrete data. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpccm.h"Go to the source code of this file.
Functions | |
| int | convolve1D (double *data, const int n, double *kernel, const int m, double *out) |
| Calculates the convolution sum of a discrete real data set data[0..n-1] and a discretized response function kernel[0..m]. | |
| int | simIsSteadyInterval (double *x, const int n, double *f) |
Linear convolution for discrete data.
Definition in file convolut.c.
| int convolve1D | ( | double * | data, |
| const int | n, | ||
| double * | kernel, | ||
| const int | m, | ||
| double * | out ) |
Calculates the convolution sum of a discrete real data set data[0..n-1] and a discretized response function kernel[0..m].
Convolution is not aware of the step size (default is 1); if step size is not 1 (it usually isn't), the step size must be taken into account either when computing the kernel or by scaling the convolution sum.
| data | Data array of length n-1 to be convolved, including any user-defined zero-padding. |
| n | Nr of data values. |
| kernel | Response function values in an array of length m. |
| m | Length of kernel array. |
| out | The convolved sum data is returned in out[0..n-1]; this must not overlap the input data. |
Definition at line 27 of file convolut.c.
| int simIsSteadyInterval | ( | double * | x, |
| const int | n, | ||
| double * | f ) |
Check whether given values have steady intervals, with the first interval starting at zero. Optionally return the interval, or in case of uneven intervals, the shortest interval.
| x | Array of values to check; must be sorted in ascending order. |
| n | Size of the data array; at least two. |
| f | Pointer for the interval, either the common or the shortest interval; enter NULL, if not needed. |
Definition at line 66 of file convolut.c.