Skip to content
Snippets Groups Projects
Select Git revision
  • 1d536e6cbcf8e0cbd1d24d9621b60b93b3ebbbd3
  • master default protected
  • johannes
  • partial_parser
  • Aloui_Dary
  • ignore_punct
  • AC
  • classifier
  • fixhelp
  • libmacaon2
  • error_predictor
  • morpho
  • ssrnn
  • tfparsing
  • silvio
  • tagger_options
  • maca_trans_frame_parser
  • alexis
  • new_config
  • tagparse
  • maca_graph_parser
21 results

word_buffer.c

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