annotate reeval/features/set_options.m @ 2:b1cd83874633

Major structural revision. Modular organization of functionalities
author Francisco Rodriguez Algarra <f.rodriguezalgarra@qmul.ac.uk>
date Wed, 28 Oct 2015 16:15:47 +0000
parents
children
rev   line source
f@2 1 function [options] = set_options(experiment)
f@2 2
f@2 3 % filter 1 options
f@2 4
f@2 5 options.filt1_opt = set_filt1_options(experiment);
f@2 6 options.sc1_opt = set_sc1_options(experiment);
f@2 7
f@2 8 % frequency filter 1 options
f@2 9
f@2 10 freq_filt_exps = {'time_freq_scat_l2', 'time_freq_scat_l2_adap_q1'};
f@2 11
f@2 12 if(length(find(ismember(...
f@2 13 freq_filt_exps, experiment))) ~= 0)
f@2 14
f@2 15 [options.ffilt1_opt, options.fsc1_opt] = ...
f@2 16 set_ffilt1_options(experiment);
f@2 17 end
f@2 18
f@2 19 % secondary filters options
f@2 20
f@2 21 sec_filt_exps = {'time_freq_scat_l2_adap_q1'};
f@2 22
f@2 23 if(length(find(ismember(...
f@2 24 sec_filt_exps, experiment))) ~= 0)
f@2 25
f@2 26 [options.filt2_opt, options.sc2_opt, ...
f@2 27 options.ffilt2_opt, options.fsc2_opt] = ...
f@2 28 set_filt2_options(experiment, options);
f@2 29
f@2 30 end
f@2 31
f@2 32 end