signals.cpp File Reference

#include <cstdio>
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include <fftw3.h>
#include "common.h"
#include "signals.h"
#include "memory.h"
Include dependency graph for signals.cpp:

Functions

float8 Index_to_frequency (unsigned NumSamples, unsigned Index)
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)
void vector_mul_div (signed4 *data, long l, signed4 mul, signed4 div)
float8 find_mean (float8 *data, long l)
float4 find_mean (float4 *data, long l)
void translate_mean (float4 *data, long l)
void normalize_mean (float8 *data, long l)
void normalize_mean (float4 *data, long l)
float8 norm (float8 r, float8 e)
void dump (const char *title, float8 *data, int size)
void biased_autocorrelation (float8 *in, int size)
void unbiased_autocorrelation (float8 *data, int size)
float8 biased_l2_distance (float8 *a, float8 *b, int size)
float8 biased_abs_distance (float8 *a, float8 *b, int size)
float8 unbiased_abs_distance (float8 *a, float8 *b, int size)
float8 unbiased_l2_distance (float8 *a, float8 *b, int size)
float8 biased_best_l2_circular_distance (float8 *a, float8 *b, int size)
float8 biased_best_abs_circular_distance (float8 *a, float8 *b, int size)
void absolute (float8 *arr, int s)
void differentiate (float8 *arr, int s)
void energize (float8 *data, float8 audiosize, unsigned4 fs)

Function Documentation

void absolute ( float8 arr,
int  s 
)

References i.

float8 biased_abs_distance ( float8 a,
float8 b,
int  size 
)
void biased_autocorrelation ( float8 in,
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.

float8 biased_l2_distance ( float8 a,
float8 b,
int  size 
)
void differentiate ( float8 arr,
int  s 
)
void dump ( const char *  title,
float8 data,
int  size 
)

References i.

void energize ( float8 data,
float8  audiosize,
unsigned4  fs 
)

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

Referenced by BpmCounter::measure().

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  ) 
float8 norm ( float8  r,
float8  e 
)
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 data,
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