suanPan
resampling.cpp File Reference
#include "resampling.h"
Include dependency graph for resampling.cpp:

Functions

uword gcd (uword a, uword b)
 
vec cos_window (const uword n, const vec &a)
 
vec hamming (const uword n)
 
vec hann (const uword n)
 
vec blackman (const uword n)
 
vec blackman_nuttall (const uword n)
 
vec blackman_harris (const uword n)
 
vec flat_top (const uword n)
 
vec fir_low_pass (const uword s, const double f, vec(*window)(uword))
 
vec fir_high_pass (const uword s, const double f, vec(*window)(uword))
 
vec fir_band_pass (const uword s, const double fa, const double fb, vec(*window)(uword))
 
vec fir_band_stop (const uword s, const double fa, const double fb, vec(*window)(uword))
 
template<>
vec fir_low_pass< WindowType::Hamming > (const uword s, const double f)
 
template<>
vec fir_low_pass< WindowType::Hann > (const uword s, const double f)
 
template<>
vec fir_low_pass< WindowType::Blackman > (const uword s, const double f)
 
template<>
vec fir_low_pass< WindowType::BlackmanNuttall > (const uword s, const double f)
 
template<>
vec fir_low_pass< WindowType::BlackmanHarris > (const uword s, const double f)
 
template<>
vec fir_low_pass< WindowType::FlatTop > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::Hamming > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::Hann > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::Blackman > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::BlackmanNuttall > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::BlackmanHarris > (const uword s, const double f)
 
template<>
vec fir_high_pass< WindowType::FlatTop > (const uword s, const double f)
 
template<>
vec fir_band_pass< WindowType::Hamming > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_pass< WindowType::Hann > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_pass< WindowType::Blackman > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_pass< WindowType::BlackmanNuttall > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_pass< WindowType::BlackmanHarris > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_pass< WindowType::FlatTop > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::Hamming > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::Hann > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::Blackman > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::BlackmanNuttall > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::BlackmanHarris > (const uword s, const double fa, const double fb)
 
template<>
vec fir_band_stop< WindowType::FlatTop > (const uword s, const double fa, const double fb)
 
mat upsampling (const string &window_type, const string &file_name, const uword up_rate, const uword window_size)
 

Function Documentation

◆ blackman()

vec blackman ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ blackman_harris()

vec blackman_harris ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ blackman_nuttall()

vec blackman_nuttall ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cos_window()

vec cos_window ( const uword  n,
const vec &  a 
)
Here is the caller graph for this function:

◆ fir_band_pass()

vec fir_band_pass ( const uword  s,
const double  fa,
const double  fb,
vec(*)(uword)  window 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fir_band_pass< WindowType::Blackman >()

template<>
vec fir_band_pass< WindowType::Blackman > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::BlackmanHarris >()

template<>
vec fir_band_pass< WindowType::BlackmanHarris > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::BlackmanNuttall >()

template<>
vec fir_band_pass< WindowType::BlackmanNuttall > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::FlatTop >()

template<>
vec fir_band_pass< WindowType::FlatTop > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::Hamming >()

template<>
vec fir_band_pass< WindowType::Hamming > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::Hann >()

template<>
vec fir_band_pass< WindowType::Hann > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop()

vec fir_band_stop ( const uword  s,
const double  fa,
const double  fb,
vec(*)(uword)  window 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fir_band_stop< WindowType::Blackman >()

template<>
vec fir_band_stop< WindowType::Blackman > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::BlackmanHarris >()

template<>
vec fir_band_stop< WindowType::BlackmanHarris > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::BlackmanNuttall >()

template<>
vec fir_band_stop< WindowType::BlackmanNuttall > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::FlatTop >()

template<>
vec fir_band_stop< WindowType::FlatTop > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::Hamming >()

template<>
vec fir_band_stop< WindowType::Hamming > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::Hann >()

template<>
vec fir_band_stop< WindowType::Hann > ( const uword  s,
const double  fa,
const double  fb 
)
Here is the call graph for this function:

◆ fir_high_pass()

vec fir_high_pass ( const uword  s,
const double  f,
vec(*)(uword)  window 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fir_high_pass< WindowType::Blackman >()

template<>
vec fir_high_pass< WindowType::Blackman > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::BlackmanHarris >()

template<>
vec fir_high_pass< WindowType::BlackmanHarris > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::BlackmanNuttall >()

template<>
vec fir_high_pass< WindowType::BlackmanNuttall > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::FlatTop >()

template<>
vec fir_high_pass< WindowType::FlatTop > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::Hamming >()

template<>
vec fir_high_pass< WindowType::Hamming > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::Hann >()

template<>
vec fir_high_pass< WindowType::Hann > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass()

vec fir_low_pass ( const uword  s,
const double  f,
vec(*)(uword)  window 
)
Here is the caller graph for this function:

◆ fir_low_pass< WindowType::Blackman >()

template<>
vec fir_low_pass< WindowType::Blackman > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::BlackmanHarris >()

template<>
vec fir_low_pass< WindowType::BlackmanHarris > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::BlackmanNuttall >()

template<>
vec fir_low_pass< WindowType::BlackmanNuttall > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::FlatTop >()

template<>
vec fir_low_pass< WindowType::FlatTop > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::Hamming >()

template<>
vec fir_low_pass< WindowType::Hamming > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::Hann >()

template<>
vec fir_low_pass< WindowType::Hann > ( const uword  s,
const double  f 
)
Here is the call graph for this function:

◆ flat_top()

vec flat_top ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gcd()

uword gcd ( uword  a,
uword  b 
)
Here is the caller graph for this function:

◆ hamming()

vec hamming ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hann()

vec hann ( const uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ upsampling()

mat upsampling ( const string &  window_type,
const string &  file_name,
const uword  up_rate,
const uword  window_size 
)
Here is the call graph for this function:
Here is the caller graph for this function: