signals.h File Reference

#include <fftw3.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/mman.h>
#include <syscall.h>
#include <math.h>
#include "common.h"
#include "memory.h"
#include "files.h"
Include dependency graph for signals.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Sample< Type, Channels >
class  BasicSignal< Type, Channels >
class  Signal< Type, Channels >
class  SignalIO< Type, Channels >
class  Shift< Type, Channels >
class  HalfComplex< Type, Channels >
class  BasicConvertor
class  Fft< Channels >
class  Haar< Input, Output, Channels >

Defines

#define DECLARE   template <class Type, int Channels>
#define BASIC   BasicSignal<Type,Channels>
#define SIGNL   Signal<Type,Channels>
#define SAMPLE   Sample<Type,Channels>
#define SHIFT   Shift<Type,Channels>
#define DECLHAAR   template <class Input, class Output, int Channels>
#define HAAR   Haar<Input,Output,Channels>
#define SIO   SignalIO<Type,Channels>

Functions

unsigned4 absolute (signed4 i)
unsigned2 absolute (signed2 i)
float8 absolute (float8 i)
float4 absolute (float4 i)
signed8 higher_power_of_two (signed8 a)
signed8 lower_power_of_two (signed8 a)
float8 find_max (float8 *data, long l)
long find_max_rpos (unsigned4 *data, long l)
float8 find_mean (float8 *data, long l)
float4 find_mean (float4 *data, long l)
void vector_mul_div (signed4 *data, long l, signed4 mul, signed4 div)
void normalize_mean (float8 *data, long l)
void normalize_mean (float4 *data, long l)
void translate_mean (float4 *data, long l)
float8 norm (float8 r, float8 e)
void differentiate (float8 *r, int size)
void absolute (float8 *r, int size)
void biased_circular_autocorrelation (float8 *arr, int size)
void biased_autocorrelation (float8 *arr, int size)
void unbiased_autocorrelation (float8 *arr, int size)
float8 biased_abs_distance (float8 *a, float8 *b, int size)
float8 unbiased_abs_distance (float8 *a, float8 *b, int size)
float8 biased_l2_distance (float8 *a, float8 *b, int size)
float8 unbiased_l2_distance (float8 *a, float8 *b, int size)
float8 biased_best_abs_circular_distance (float8 *a, float8 *b, int size)
float8 biased_best_l2_circular_distance (float8 *a, float8 *b, int size)
void energize (float8 *what, float8 length, unsigned4 ws)
float8 Index_to_frequency (unsigned NumSamples, unsigned Index)
template<class type >
type minimum (type a, type b)
template<class type >
type normalize_abs_max (type *data, long l)
template<class type >
type find_abs_max (type *data, long l)

Define Documentation

#define BASIC   BasicSignal<Type,Channels>
#define DECLARE   template <class Type, int Channels>
#define DECLHAAR   template <class Input, class Output, int Channels>
#define HAAR   Haar<Input,Output,Channels>
#define SAMPLE   Sample<Type,Channels>
#define SHIFT   Shift<Type,Channels>
#define SIGNL   Signal<Type,Channels>
#define SIO   SignalIO<Type,Channels>

Signal Input & Output


Function Documentation

void absolute ( float8 r,
int  size 
)

References i.

float4 absolute ( float4  i  )  [inline]
float8 absolute ( float8  i  )  [inline]
unsigned2 absolute ( signed2  i  )  [inline]
unsigned4 absolute ( signed4  i  )  [inline]

General useful functions

float8 biased_abs_distance ( float8 a,
float8 b,
int  size 
)
void biased_autocorrelation ( float8 arr,
int  size 
)

References i.

Referenced by unbiased_autocorrelation().

float8 biased_best_abs_circular_distance ( float8 a,
float8 b,
int  size 
)

References biased_abs_distance(), and i.

Referenced by histogram_type::best_dist().

float8 biased_best_l2_circular_distance ( float8 a,
float8 b,
int  size 
)

References biased_l2_distance(), and i.

void biased_circular_autocorrelation ( float8 arr,
int  size 
)
float8 biased_l2_distance ( float8 a,
float8 b,
int  size 
)
void differentiate ( float8 r,
int  size 
)
void energize ( float8 what,
float8  length,
unsigned4  ws 
)

References assert(), bpmdj_array, bpmdj_deallocate, i, and M.

Referenced by BpmCounter::measure().

template<class type >
type find_abs_max ( type *  data,
long  l 
) [inline]
float8 find_max ( float8 data,
long  l 
)

References i.

long find_max_rpos ( unsigned4 data,
long  l 
)

References i.

float4 find_mean ( float4 data,
long  l 
)

References i.

float8 find_mean ( float8 data,
long  l 
)

References i.

Referenced by normalize_mean(), and translate_mean().

signed8 higher_power_of_two ( signed8  a  ) 
float8 Index_to_frequency ( unsigned  NumSamples,
unsigned  Index 
)
signed8 lower_power_of_two ( signed8  a  ) 
template<class type >
type minimum ( type  a,
type  b 
) [inline]

Aux

float8 norm ( float8  r,
float8  e 
)
template<class type >
type normalize_abs_max ( type *  data,
long  l 
) [inline]
void normalize_mean ( float4 data,
long  l 
)

References find_mean(), and i.

void normalize_mean ( float8 data,
long  l 
)

References find_mean(), and i.

void translate_mean ( float4 data,
long  l 
)

References find_mean(), and i.

Referenced by spectrum_type::set_band().

float8 unbiased_abs_distance ( float8 a,
float8 b,
int  size 
)
void unbiased_autocorrelation ( float8 arr,
int  size 
)
float8 unbiased_l2_distance ( float8 a,
float8 b,
int  size 
)

References biased_l2_distance().

void vector_mul_div ( signed4 data,
long  l,
signed4  mul,
signed4  div 
)

References i.

Referenced by histogram_type::normalize().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2