TwiceAsNice  2019-02-18
Functions
libdspau-fft.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <fftw3.h>
#include "libdspau.h"
Include dependency graph for libdspau-fft.c:

Functions

static double complex_mag (fftw_complex n)
 
static double complex_phi (fftw_complex n)
 
static void complex2mag (fftw_complex *in, double *out, int len)
 
static void complex2magpow (fftw_complex *in, double *out, int len)
 
static void complex2magsqrt (fftw_complex *in, double *out, int len)
 
static void complex2magdbv (fftw_complex *in, double *out, int len)
 
static void complex2phideg (fftw_complex *in, double *out, int len)
 
static void complex2phirad (fftw_complex *in, double *out, int len)
 
int dspau_spectrum (double *in, double *out, int dims, int *sizes, int conversion)
 Create a spectrum from a double array of values. More...
 

Function Documentation

◆ complex2mag()

static void complex2mag ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex2magdbv()

static void complex2magdbv ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex2magpow()

static void complex2magpow ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex2magsqrt()

static void complex2magsqrt ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex2phideg()

static void complex2phideg ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex2phirad()

static void complex2phirad ( fftw_complex *  in,
double *  out,
int  len 
)
static

◆ complex_mag()

static double complex_mag ( fftw_complex  n)
static

◆ complex_phi()

static double complex_phi ( fftw_complex  n)
static

◆ dspau_spectrum()

int dspau_spectrum ( double *  in,
double *  out,
int  dims,
int *  sizes,
int  conversion 
)

Create a spectrum from a double array of values.

Parameters
inthe input stream. (input)
outthe output stream. (output)
dimsthe number of dimensions of the input stream (input).
sizesarray with the lengths of each dimension of the input stream (input).
conversionthe output magnitude dspau_conversiontype type.
Returns
the output stream if successfull elaboration. NULL if an error is encountered. Return 0 if success. Return -1 if any error occurs.