tico 0.1
Mechanical Watch Terminal Timegrapher
Functions
myfft.h File Reference
#include "myarr.h"
#include <fftw3.h>
Include dependency graph for myfft.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

fftw_complex * makeFilter (size_t evalue, size_t ArrayLength)
 @ . More...
 
size_t fftfit (struct myarr input, int *total, const int *base, double *corvalue, fftw_complex *filterFFT, int verb, double *subpos)
 @ shift. More...
 
fftw_complex * convolute (struct myarr array, fftw_complex *filter)
 @ frequency domain. More...
 
size_t getmaxfftw (fftw_complex *array, size_t ArrayLength)
 @ frequency domain. More...
 
fftw_complex * crosscor (size_t ArrayLength, fftw_complex *array, fftw_complex *ref)
 Perform cross-correlation between the input array and the reference array in the frequency domain. More...
 
void writefftw (fftw_complex *arr, size_t ArrayLength, const char *file)
 Write the given array in the frequency domain to a file. More...
 
void remove50hz (size_t ArrayLength, int *array, unsigned int rate)
 Remove the 50Hz component from the input array. More...
 
void normalise (size_t ArrayLength, fftw_complex *inData)
 Normalise the input array in the frequency domain. More...
 
void rescale (int *total, size_t ArrayLength)
 Rescale the input array to fit within the range of a 16-bit signed integer. More...
 
int getshift (struct myarr xarr, struct myarr yarr)
 Get the shift between the two input arrays. More...