annotate reeval/features/compute_features.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 |
a1f6a08f624c |
rev |
line source |
f@2
|
1 function [db] = compute_features(experiment, src)
|
f@2
|
2
|
f@2
|
3 if nargin < 2
|
f@2
|
4 global src;
|
f@2
|
5 end
|
f@2
|
6
|
f@2
|
7 N = 5*2^17;
|
f@2
|
8
|
f@2
|
9 % set the appropriate options for the particular feature set
|
f@2
|
10
|
f@2
|
11 options = set_options(experiment);
|
f@2
|
12
|
f@2
|
13 % extract features using the computed options
|
f@2
|
14
|
f@2
|
15 features = extract_features(experiment, N, options);
|
f@2
|
16
|
f@2
|
17 db = prepare_database(src, features);
|
f@2
|
18 db.features = single(db.features);
|
f@2
|
19
|
f@2
|
20 end
|