NPL
Neurological Programs and Libraries
chirpz.h File Reference
#include <cstddef>
#include <cstdlib>
#include <string>
#include <vector>
#include <complex>
#include "fftw3.h"

Go to the source code of this file.

Namespaces

 npl
 

Functions

void npl::createChirp (int64_t sz, fftw_complex *chirp, int64_t origsz, double upratio, double alpha, bool center, bool fft)
 Fills the input array (chirp) with a chirp of the specified type. More...
 
void npl::chirpzFFT (size_t isize, size_t usize, fftw_complex *inout, size_t uppadsize, fftw_complex *buffer, fftw_complex *prechirp, fftw_complex *convchirp, fftw_complex *postchirp, bool debug=false)
 Comptues the chirpzFFT transform using FFTW for n log n performance. More...
 
void npl::chirpzFFT (size_t isize, size_t usize, fftw_complex *inout, fftw_complex *buffer, bool debug=false)
 Comptues the chirpzFFT transform using FFTW for n log n performance. More...
 
void npl::chirpzFFT (size_t isize, fftw_complex *in, fftw_complex *out, double a, bool debug=false)
 Comptues the chirpzFFT transform using FFTW for n log n performance. More...
 
void npl::chirpzFT_brute2 (size_t isize, fftw_complex *in, fftw_complex *out, double a, bool debug=false)
 Performs chirpz transform with a as fractional parameter by N^2 algorithm. More...
 
void npl::chirpzFT_brute (size_t len, fftw_complex *in, fftw_complex *out, double a)
 Performs chirpz transform with a as fractional parameter by N^2 algorithm. More...
 
void npl::chirpzFT_zoom (size_t isize, fftw_complex *in, fftw_complex *out, double a)
 Performs the chirpz-transform using linear intpolation and the FFT. For greater speed pre-allocate the buffer and use the other chirpzFT_zoom. More...
 
void npl::chirpzFT_zoom (size_t isize, fftw_complex *in, fftw_complex *out, fftw_complex *buffer, double a)
 Performs the chirpz-transform using linear intpolation and teh FFT. More...
 
void npl::writePlotAbsAng (std::string file, size_t insz, fftw_complex *in)
 Plots an array of complex points with the Real and Imaginary Parts. More...
 
void npl::writePlotReIm (std::string file, const std::vector< std::complex< double >> &in)
 Plots an array of complex points with the Real and Imaginary Parts. More...
 
void npl::writePlotReIm (std::string file, size_t insz, fftw_complex *in)
 Plots an array of complex points with the Real and Imaginary Parts. More...
 
void npl::zoom (size_t isize, fftw_complex *in, fftw_complex *out, double a)
 Performs a de-facto chirpz by interpolated zoom of a fourier-space line. More...