suanPan
resampling.h File Reference
#include <Toolbox/utility.h>
Include dependency graph for resampling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  WindowType {
  Hamming , Hann , Blackman , BlackmanNuttall ,
  BlackmanHarris , FlatTop
}
 

Functions

uword gcd (uword, uword)
 
vec hamming (uword)
 
vec hann (uword)
 
vec blackman (uword)
 
vec blackman_nuttall (uword)
 
vec blackman_harris (uword)
 
vec flat_top (uword)
 
vec fir_low_pass (uword, double, vec(*)(uword))
 
vec fir_high_pass (uword, double, vec(*)(uword))
 
vec fir_band_pass (uword, double, double, vec(*)(uword))
 
vec fir_band_stop (uword, double, double, vec(*)(uword))
 
template<WindowType T>
vec fir_low_pass (uword, double)
 
template<>
vec fir_low_pass< WindowType::Hamming > (uword, double)
 
template<>
vec fir_low_pass< WindowType::Hann > (uword, double)
 
template<>
vec fir_low_pass< WindowType::Blackman > (uword, double)
 
template<>
vec fir_low_pass< WindowType::BlackmanNuttall > (uword, double)
 
template<>
vec fir_low_pass< WindowType::BlackmanHarris > (uword, double)
 
template<>
vec fir_low_pass< WindowType::FlatTop > (uword, double)
 
template<WindowType T>
vec fir_high_pass (uword, double)
 
template<>
vec fir_high_pass< WindowType::Hamming > (uword, double)
 
template<>
vec fir_high_pass< WindowType::Hann > (uword, double)
 
template<>
vec fir_high_pass< WindowType::Blackman > (uword, double)
 
template<>
vec fir_high_pass< WindowType::BlackmanNuttall > (uword, double)
 
template<>
vec fir_high_pass< WindowType::BlackmanHarris > (uword, double)
 
template<>
vec fir_high_pass< WindowType::FlatTop > (uword, double)
 
template<WindowType T>
vec fir_band_pass (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::Hamming > (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::Hann > (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::Blackman > (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::BlackmanNuttall > (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::BlackmanHarris > (uword, double, double)
 
template<>
vec fir_band_pass< WindowType::FlatTop > (uword, double, double)
 
template<WindowType T>
vec fir_band_stop (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::Hamming > (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::Hann > (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::Blackman > (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::BlackmanNuttall > (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::BlackmanHarris > (uword, double, double)
 
template<>
vec fir_band_stop< WindowType::FlatTop > (uword, double, double)
 
template<WindowType T>
vec upsampling (const vec &in, const uword up_rate, const uword window_size)
 
template<WindowType T>
mat upsampling (const string &file_name, const uword up_rate, const uword window_size)
 
mat upsampling (const string &, const string &, uword, uword=8llu)
 

Enumeration Type Documentation

◆ WindowType

enum class WindowType
strong
Enumerator
Hamming 
Hann 
Blackman 
BlackmanNuttall 
BlackmanHarris 
FlatTop 

Function Documentation

◆ blackman()

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

◆ blackman_harris()

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

◆ blackman_nuttall()

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

◆ fir_band_pass() [1/2]

template<WindowType T>
vec fir_band_pass ( uword  ,
double  ,
double   
)

◆ fir_band_pass() [2/2]

vec fir_band_pass ( uword  s,
double  fa,
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 > ( uword  s,
double  fa,
double  fb 
)
Here is the call graph for this function:

◆ fir_band_pass< WindowType::BlackmanHarris >()

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

◆ fir_band_pass< WindowType::BlackmanNuttall >()

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

◆ fir_band_pass< WindowType::FlatTop >()

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

◆ fir_band_pass< WindowType::Hamming >()

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

◆ fir_band_pass< WindowType::Hann >()

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

◆ fir_band_stop() [1/2]

template<WindowType T>
vec fir_band_stop ( uword  ,
double  ,
double   
)

◆ fir_band_stop() [2/2]

vec fir_band_stop ( uword  s,
double  fa,
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 > ( uword  s,
double  fa,
double  fb 
)
Here is the call graph for this function:

◆ fir_band_stop< WindowType::BlackmanHarris >()

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

◆ fir_band_stop< WindowType::BlackmanNuttall >()

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

◆ fir_band_stop< WindowType::FlatTop >()

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

◆ fir_band_stop< WindowType::Hamming >()

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

◆ fir_band_stop< WindowType::Hann >()

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

◆ fir_high_pass() [1/2]

template<WindowType T>
vec fir_high_pass ( uword  ,
double   
)

◆ fir_high_pass() [2/2]

vec fir_high_pass ( uword  s,
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 > ( uword  s,
double  f 
)
Here is the call graph for this function:

◆ fir_high_pass< WindowType::BlackmanHarris >()

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

◆ fir_high_pass< WindowType::BlackmanNuttall >()

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

◆ fir_high_pass< WindowType::FlatTop >()

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

◆ fir_high_pass< WindowType::Hamming >()

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

◆ fir_high_pass< WindowType::Hann >()

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

◆ fir_low_pass() [1/2]

template<WindowType T>
vec fir_low_pass ( uword  ,
double   
)

◆ fir_low_pass() [2/2]

vec fir_low_pass ( uword  s,
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 > ( uword  s,
double  f 
)
Here is the call graph for this function:

◆ fir_low_pass< WindowType::BlackmanHarris >()

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

◆ fir_low_pass< WindowType::BlackmanNuttall >()

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

◆ fir_low_pass< WindowType::FlatTop >()

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

◆ fir_low_pass< WindowType::Hamming >()

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

◆ fir_low_pass< WindowType::Hann >()

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

◆ flat_top()

vec flat_top ( 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 ( uword  n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hann()

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

◆ upsampling() [1/3]

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

◆ upsampling() [2/3]

template<WindowType T>
mat upsampling ( const string &  file_name,
const uword  up_rate,
const uword  window_size 
)
Here is the call graph for this function:

◆ upsampling() [3/3]

template<WindowType T>
vec upsampling ( const vec &  in,
const uword  up_rate,
const uword  window_size 
)