Skip to content
Snippets Groups Projects
Select Git revision
  • e066bb1730479bab8e7fcde6515a92f5879d89bc
  • master default protected
  • py
  • rmevec
  • tffm
  • approx
  • v0.1.5
  • v0.1.4
  • v0.1.3
9 results

get_params.m

Blame
  • get_params.m 635 B
    function  params = get_params(win_len, win_type)
    % Function that generates input data for the function that generates dgt parameters
    % Inputs:
    %     -win_len(int): analysis window length
    %     -win_type(str): analysis window type (hann/gauss)
    % Outputs:
    %     -hop(int): hop size
    %     -nbins(int): frequency bins
    %     -win_type, win_len
    % 
    % Author : Marina KREME
    %%
    
    switch win_type
        case 'gauss'
            hop = win_len/4;
            nbins = win_len*4;
        case 'hann'
            
            hop = win_len/8;
            nbins = win_len*2;
    end
    
    params.win_type = win_type;
    params.win_len = win_len;
    params.hop = hop;
    params.nbins = nbins;
    
    end